Index Index for
Section 1
Index Alphabetical
listing for L
Bottom of page Bottom of
page

lmshell(1)

NAME

lmshell - Creates links to other servers on the network

SYNOPSIS

/usr/bin/lmshell [command] [/;command]

DESCRIPTION

The lmshell utility is for Advanced Server for UNIX administrators who are Tru64 UNIX system users and prefer to use DOS commands and naming conventions. The lmshell command allows you to link to other servers on the network. It also allows you to use the net use(1) command to view and manipulate files on other servers. To use lmshell, enter lmshell at the Tru64 UNIX system prompt. A prompt is displayed that looks like a DOS prompt, for example, C:\TMP; when you see this prompt, you can enter commands. The commands operate similarly to their DOS counterparts. The default drive for lmshell is C:, which maps to the local Tru64 UNIX system file system. You can use the lmshell utility to test for connectivity. For example, if a client is having trouble accessing shared files on a server, you can use lmshell to try to access those files from another server. If you can use lmshell to access the shared files, you can be assured the server is functioning properly. You can also use lmshell to type out files on other servers' share areas, to copy them to or from your server, and to connect to printers. When you are executing lmshell, the look and feel is like the DOS command line. The lmshell utility allows you to view and manipulate files on other server computers by using the net use command to: · Link to shared directories in order to look at files or copy files to the local computer's hard disk · Link to shared printers and copy files to them for printing The lmshell utility understands UNC (Universal Naming Convention) names as described in the MS-DOS or OS/2 client documentation. A UNC name is a syntax for accessing files and directories without using the net use command. For example, to type out the file foo in the share area \tmp on the server ernie, type the following: type \\ernie\tmp\foo You can specify commands to lmshell on the command line. To type out foo in the previous example from the Tru64 UNIX system prompt, enter: lmshell 'type \\ernie\tmp\foo\' The drive letters and drive redirections are abstractions with lmshell only. They do not affect any other commands executing on the Tru64 UNIX server computer, and they disappear when you exit lmshell. While you are in lmshell, you can temporarily escape to the system shell by using the ! command. Drive letters and other redirections cannot be referenced outside lmshell, not even in a subshell started with the ! command. The lmshell utility is not a Tru64 UNIX system shell, nor is it the actual DOS operating system. It can only run the commands listed in this reference page. For example, you cannot use the Tru64 UNIX system vi editor or run the DOS chkdsk utility in lmshell.

LMSHELL COMMANDS

To see the commands you can use, type ? and press return at the lmshell prompt. The commands are shown below. cd [ drive:[path] ] Change a directory. type filename See the contents of a file. copy sourcefile destfile Make a copy of a file. dir [ drive:[path] ] | filename ] [/W] See the contents of a directory. drive: Change the current drive where drive is a device name. If the drive name is C, this indicates the local Tru64 UNIX filesystem. net logon [username] [password] [/domain:name] Log onto Advanced Server for UNIX on a remote server. net logoff Log off Advanced Server for UNIX on a remote server net use [ drive:[ uname sharename| /delete ] ] Link to shared directories or printers on another server. net view Display a list of servers or resources available on a server. debug [ /on | /off ] Display lmshell debugging status, turn debugging on or off. The debug file is stored in the lanman/debug directory. quit or exit Exit the lmshell utility.

EXAMPLES

1. To view the resources that are offered on a server called peter, type the following: net view e: \\peter 2. To connect to the laser printer on the server mary, type the following: net use lpt1: \\mary\hplaser

SEE ALSO

For more information about UNC names, see the client documentation for MS- DOS, or for OS/2.

Index Index for
Section 1
Index Alphabetical
listing for L
Top of page Top of
page