Siemens V4.0 manual Using Special Characters With Commands

Models: V4.0

1 365
Download 365 pages 46.33 Kb
Page 187
Image 187

Administering Advanced Server at the Command Prompt

Net Command

9.2.1.7Using 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.8Typing 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"

Product Manual

U7613-J-Z815-6-76

Page 187
Image 187
Siemens V4.0 manual Using Special Characters With Commands, Typing Path Names With Unix System Net Commands