rexec
Runs a specified command on a remote host. Windows commands reference
On Windows, Linux
Windows
Runs a specified command on a remote host. The remote host must be running a rexecd service (or daemon) for rexec to connect to. IMPORTANT: The rexec command has been deprecated, and isn't guaranteed to be supported in Windows.
Linux
Execute a command on a remote host. Note: Use rexec with caution, as it transmits data in plain text. Consider secure alternatives like SSH for encrypted communication.
Execute a command on a remote host
rexec --host remote_host ls -lIdentifySpecify the remote username on a remote host
rexec --username username --host remote_host ps auxIdentifyRedirect stdin from /dev/null on a remote host
rexec --noerr --host remote_host ls -lIdentifySpecify the remote port on a remote host
rexec --port 1234 --host remote_host ls -lIdentify