Xstart offers command line options for advanced users who want to integrate Xstart with their own applications.

Actually Xstart is an interface program for creating and managing sessions. When you run a command using Xstart, it invokes Xrcmd.exe and passes all session information to the program. Thus, you have to use Xrcmd.exe, not Xstart. You can find the Xrcmd program in the folder Xmanager is installed.

The command line syntax of Xrcmd:

Xrcmd -protocol ssh|telnet|rexec|rsh|rlogin|local -host hostname -user username [-password password] [-userkey keyname] [-passphrase userkeypass] [-shell] [-zlib] [-status] [-result] [-dispno nnn] [-timeout nnn] [-port nnn] -command command
Note: The -command option should be at the end of the Xrcmd command.

Options:

-protocol protocol Specify the connection protocol.
-host hostname Specify the remote host.
-user username Specify the user account on the remote host.
-password xxxx Specify the password of the user account. If this option is not provided, a prompt dialog box appears on connection.
-userkey keyname Specify the user key name. This option is useful only for SSH connections.
-passphrase userkeypass Enter the passphrase of the user key. This option is useful only for SSH connections.
-shell Runs the command after allocating a shell (pseudo terminal). This option is useful only for SSH connections.
-zlib Compresses network data with the zlib algorithm. This option is useful only for SSH connections.
-status Shows the status dialog box while connecting to the remote host.
-result Shows the Reply Messages dialog box.
-dispno nnn Specify the display number Xmanager will use. If this option is not provided, Xmanager allocates an appropriate one.
-timeout nnn Closes the connection after nnn seconds.
-port nnn Specify the connection port for the protocol. If this option is not provided, the default port of the protocol will be used.
-command command Specify the remote command which will be executed on the remote host.

An example:

Xrcmd -protocol telnet -host mylinux -user myname -status -command /usr/bin/X11/xterm -ls

Xrcmd connects to mylinux with the telnet protocol, logs on as myname, and then runs an xterm command on the remote host. A status dialog box opens while connecting to the host.