5 using command confirmation, 6 using abbreviations, Maxpwage ) – Siemens Unix V4.0 User Manual

Page 186: Net logoff /yes

Advertising
background image

Administering Advanced Server at the Command Prompt

Net Command

Product Manual

U7613-J-Z815-6-76

©

S

iem

e

n

s

N

ix

dor

f

In

fo

rm

at

io

n

s

s

y

s

te

m

e

A

G

1

9

9

5

P

fad

: D:

\O

7

613

e6

\u

761

3e

.k

09

9.2.1.5

Using Command Confirmation

Some Net commands require confirmation. The /yes and /no options help expedite Net
commands. When Advanced Server reads one of these options, it does not pause to
display the corresponding prompt. Instead, Advanced Server accepts the

/yes or /no option

as your response to the prompt.

You can use Net commands with /yes ( /y ) and /no ( /n ) options to create batch files and
shell scripts that are not interrupted by Advanced Server prompts.

For example, if you use the net logoff command to log off the local area network with
connections to remote shared resources intact, Advanced Server displays a prompt similar
to the following:

You have the following remote connections:

LPT1

Continuing will cancel the connections.

Do you want to continue this operation? (Y/N) [Y]:

You can use the /yes and /no options with any Net command to anticipate and respond to
a prompt. For example, you are not prompted for confirmation when you type the following:

net logoff /yes

9.2.1.6

Using Abbreviations

The command reference pages in this chapter always use the full command names,
command options, and service names. However, Advanced Server recognizes abbrevia-
tions.

You can abbreviate any command option by typing enough letters to distinguish it from
other command options. For example, the following is the syntax for the net accounts
command:

net accounts [/forcelogoff:{minutes|no }]
[/minpwlen:length]
[/maxpwage:{days|unlimited}][/minpwage:days] [/uniquepw:number]

You can abbreviate the options as illustrated in the following example:

net accounts /f:10 /minpwl:6 /ma:unlimited /minpwa:7 /u:3

You cannot abbreviate option values (for example, the unlimited option for

/

maxpwage

)

.

Advertising