Xrcmd Command Line Options
Xstart provides command line option, which enables advanced users to integrate the program with their applications. In reality, Xstart only provides a user interface for session creation and management. When a user opens a session using Xstart, it executes the Xrcmd.exe command and forwards the session information. Therefore, for direct connections, Xrcmd.exe must be used, not Xstart. Xrcmd is found in the folder where Xmanager is installed.
The Xrcmd Command Line Rules are As Follows:
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 remote_command
Note: –command option must be at the end.
Options:
Tag |
Description |
---|---|
-protocol protocol |
Designate a connection protocol. |
-host hostname |
Designate a remote host. |
-user username |
Designate remote host user account. |
-password xxxx |
Designate user account password. |
-userkey keyname |
Designate user key name. This option is used only for SSH connection. |
-passphrase userkeypass |
Enter user key passphrase. This option is used only for SSH connection. |
-shell |
Run a command after shell (terminal) starts. This option is applied only to SSH connection. |
-zlib |
Compress network data using zlib algorithm. This option is applied only to SSH connection. |
-status, -result |
Show Remote execution result window. |
-dispno nnn |
Designate a display number to be used by Xmanager server. If this option is not set, Xmanager server automatically allocates an appropriate value. |
-timeout nnn |
Close connection after nnn seconds. |
-port nnn |
Designate connection protocol port number. If this option is not set, the default protocol port number is used. |
-command command |
Designate a command to be executed in a remote host. |
Ex.:
Xrcmd –protocol telnet –host mylinux –user myname –status
–command /usr/bin/X11/xterm –ls
Xrcmd connects to mylinux using a telnet protocol and logs in with myname. It then executes the xterm command on the remote host. The connection status can be checked through the Remote execution result window during the course of connection.