Linux and Unix on command
Quick links
About on
Syntax
Examples
Related commands
Linux and Unix main page
Execute a command on a remote system, but with the local environment.
on [ -i ] [ -d ] [ -n ] host command [argument]
| -i | Interactive mode. Use remote echoing and special character processing. This option is needed for programs that expect to be talking to a terminal. All terminal modes and window size changes are propagated. |
| -d | Debug mode. Print out some messages as work is being done. |
| -n | No Input. This option causes the remote program to get EOF when it reads from the standard input, instead of passing the standard input from the standard input of the on program. For example, -n is necessary when running commands in the background with job control. |
| host command | The host command that you wish to execute |
| argument | Addition arguments |
on computerhope.com ls
Runs the ls command on the domain computerhope.com
