7 using special characters with commands, 8 typing path names with unix system net com, Marksp – Siemens Unix V4.0 User Manual

Page 187: Net logon marksp mrkt\&dev

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.7

Using Special Characters With Commands

Some of the names or passwords that you need to enter may contain one or more special
characters, for example, an ampersand ( & ). When you are at the UNIX system command
prompt typing a name with a special character in an Advanced Server command, you must
use an escape character (the back slash [ \ ]) before each special character. If you are at a
client computer, you can surround the string containing the special characters in double
quotes.

For example, to log on with the user name

marksp

and the password

mrkt&dev

on the UNIX

system command prompt, you could type the following:

net logon marksp mrkt\&dev

Some commonly used UNIX system special characters include the following: asterisk ( * );
semi-colon ( ; ); pipe ( | ); square brackets ( [ ] ); parentheses [ ( ) ]; question mark ( ? );
ampersand ( & ); caret ( ^ ); back slash ( \ ); greater-than and less-than signs ( < > );
blank ( ) and the “at” sign ( @ ).

There are other UNIX special characters that you may encounter. For more information on
special characters, consult your UNIX system documentation.

9.2.1.8

Typing Path Names With UNIX System Net Commands

The UNIX system uses a forward slash to separate names in a path. This is different from
client computers, which use back slashes. Always precede path names with

c:

when using

the Net command.

When typing path names at a UNIX system command prompt, you can use any of the
following methods:

Single forward slashes — separate each element of the path with single forward
slashes, like this:

net share tmpshare=c:/tmp /us:10 /r:"Share for temporary use"

Double back slashes — separate each element of the path with double back slashes,
like this:

net share tmpshare=c:\\tmp /us:10 /r:"Share for temporary use"

Single quotes — separate each element of the path with single back slashes and
surround the whole path in single quotes, like this:

net share ’tmpshare=c:\tmp’/r:"Share for temporary use"

Double Quotes - When including spaces in values, you need to enclose the value in
double quotes. For example, to change the comment for the

domain guests

group, you

could type the following command:

net group "domain guests" /comment:"All domain guests"

Advertising