ChorusOS 5.0 System Administrator's Guide

Communicating with the Target Using rsh

For the ChorusOS operating system, commands that would in conventional UNIX systems be run through a shell are in fact run through rsh. The rsh command executes a command on a remote host, passing its input and receiving its output. When the ChorusOS 5.0 operating system image including the rsh feature is booted on the target machine, the C_INIT actor interprets the commands sent from the host through rsh. (See the rshd man page on your host). To see the list of the options available, type:


% rsh target help

where target is the target name or IP address.

The following information is displayed by the C_INIT actor:


C_INIT ChorusOS 5.0.0- valid commands that deal with:

File Systems:
        mount [[-t nfs|ufs|msdosfs|pdevfs] host:pathname|special_file 
	[mount_point]]
        umount [-v|-F|-f|-a|-t nfs|ufs|msdosfs|pdevfs] [special_file]
        swapon [mount_point]

Actors:
        arun [-g rgid] [-S | -U] [-k] [-T] [-d] [-q]
	 [-D] [-Z] [-xip] path [args]
        akill [-s site] {-g rgid | [-c] pid }
        aps 
        umask [mode]
        ulimit [-HSafn] [limit]

Environment variables:
        setenv var value
        unsetenv var
        env 

Networks:
        route 
        netstat 
        ping host
        ifconfig 
        ifwait ifname [timeout, default infinite]
        rarp ethernet_interface_name
        pppd 
        pppclose device
        pppstop 
        ethIpcStackAttach [dtreepath]
        ftpd 
        tftpd

Devices:
        mknod name [b | c] major minor
        dtree 
        mkdev name unit [dtreepath]

This Target:
        reboot 
        restart 
        memstat 
         
This shell:
        echo string
        source filename
        sleep [time in seconds, default=1s]
        help 
        console 
        rshd 
         chorusStat 
        shutdown -i 0|1|2|3

For details of these commands, see C_INIT(1M).