User's Guide for MS-DOS Clients
177
Enhanced Reference
Command and Utility Summary
If the program you are running has options or variables that include
filenames, specify the full path for each file. If a drive letter is included in the
path, LAN Manager assumes that the drive is one of the server’s drives. Any
files, such as data files, that the program is to use must be on the server from
which you use the netrun command.
Most programs produce some kind of output or data. When you use netrun,
this output is sent to your screen. To send the output to a file, specify >>path
to receive the output in the netrun command line. By default,
LAN Manager creates this file in the current directory, but any path you
specify after the >> symbol is relative to your workstation, not to the server.
Commands that can be run with the netrun command are controlled by the
Netrun service on the server that has the executable file. Because the Netrun
service runs as a daemon process on the UNIX system server without a
controlling terminal, and because any command executed by netrun inherits
this state, those programs that issue input prompts when they detect that they
are being run from the command line will not issue prompts.
For example, the shell detects whether there is a controlling terminal and
issues the PS1 prompt while waiting for command input. It does not do this
when input is not coming from a terminal (for example, when it is running a
shell script from a file). When run from netrun, the shell will not issue any
prompts. A sample session follows:
D:>> netrun sh
date Wed Sep 2 17:20:26 PDT 1992
who
root console Aug 24 12:31
exit
D:>>
When using the netrun program on an MS-DOS client, the keyboard input
is buffered and lines are sent only when the buffer fills or a return is entered.
This may require entering a return after some special characters to get them
sent across. For example, when entering expressions to the UNIX system bc
program, you might type the following:
D:>> netrun bc
3+4
7
If you then intend to exit bc by typing CTRL+D (which would normally
terminate bc immediately), you need to follow the CTRL+D with a return to
send the CTRL+D to the server.