Top || Section Contents || Permuted Index
SavaJe OS 1.1.0

nsh(shell)


NAME

nsh — network shell

SYNOPSIS

nsh [-h host_ip_address] [-p port] [-f hostfile]

DESCRIPTION

Connect, via TCP/IP, to the host:port combination specified on the command line. Other than redirecting standard output to the host, nsh behaves like the shell. If the -f option is used, the host logs output into a file with the basename hostfile .

The host must be running the server side program com.savaJe.misc.nshServer , which listens on port 1111 by default.

Options

-h host specify host IP address. Default is 127.0.0.1.
-p port specify port. Default is 1111.
-f file specify log file basename on the server. Server will use the first available filename of the form fileN, where N is an integer (starting with 0).

EXAMPLE

host% java com.savaJe.misc.nshServer

Run nshServer on the host.

lsh% nsh -h 192.168.0.237 -f testresults

Run nsh from SavaJe OS to communicate with port 1111 of the host 192.168.0.237, logging output in the file testresults0 (assuming testresults0 does not exist already):

SEE ALSO

lsh(shell)


Oct. 30, 2001
Copyright © 2002 , SavaJe Technologies, Inc. All rights reserved.
Corrections, suggestions to: docs@savaje.com