---
name: "rex"
section: "1"
platform: "linux"
package: "sfs-client"
version: "1:0.8-0+pre20060720.1-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/rex"
---

# rex(1)

remote execution

## NAME

rex - remote execution

## SYNOPSIS

rex \[-TAXpv\] \[-R *port*:*lport*\]  *destination* \[*command*\]

## DESCRIPTION

**rex** is a remote execution facility which is integrated with SFS.  The program allows users run to run programs on a remote machine or obtain a shell.  Like SFS file systems, remote execution servers can be named by self-certifying path names.

The usage is as follows:

rex \[-TAXpv\] \[-R *port*:*lport*\] *destination* \[*command*\]

*destination* is one of the following:

- •

  a self-certifying hostname (location:hostid)

- •

  a self-certifying pathname (/sfs/... or /symlink-to-sfs/...)

- •

  any identifier which when processed through certification programs will yield a self-certifying pathname

## OPTIONS

- \-T

  Disable pseudo-tty allocation.

- \-A

  Disable SFS agent forwarding.  By default, if there is no **sfsagent** running on the remote machine, **rex** will forward agent requests back to the **sfsagent** running on the local machine (e.g., when a user accesses an SFS file system or runs **sfskey**).

- \-X

  Disable X forwarding.  By default, the **rex** client will set up a dummy X server which receives connections from clients on the remote machine.  These connections are forwarded over the encrypted **rex** channel to the local X server.  **rex** sets the **DISPLAY** environment variable appropriately on the remote side. Furthermore, X connections are authenticated using a \`spoofed' *MIT-MAGIC-COOKIE-1*.

- \-p

  Force **rex** to connect to the *destination* even if it cannot be resolved into a valid self-certifying path name.

- \-v

  Verbose mode.

- \-R *port*:*lport*

  Forward TCP connections made to *port* on the remote host to  *lport* on the local machine.

The **rex** command supports the escape sequences listed below. Rex only recognizes the escape character \`~' after a newline.

- •

  . terminate connection

- •

  ^Z suspend connection

- •

  ? help message

- •

  \~ send the escape character

## SEE ALSO

[*dirsearch*(1)](/dirsearch/1.md), [*newaid*(1)](/newaid/1.md), [*sfsagent*(1)](/sfsagent/1.md), [*sfskey*(1)](/sfskey/1.md), [*ssu*(1)](/ssu/1.md), *sfs\_config*(5), [*sfs\_hosts*(5)](/sfs_hosts/5.md), [*sfs\_srp\_params*(5)](/sfs_srp_params/5.md), [*sfs\_users*(5)](/sfs_users/5.md), [*sfsauthd\_config*(5)](/sfsauthd_config/5.md), [*sfscd\_config*(5)](/sfscd_config/5.md), *sfsrosd\_config*(5), [*sfsrwsd\_config*(5)](/sfsrwsd_config/5.md), [*sfssd\_config*(5)](/sfssd_config/5.md), [*sfs\_environ*(7)](/sfs_environ/7.md), [*funmount*(8)](/funmount/8.md), *nfsmounter*(8), [*sfsauthd*(8)](/sfsauthd/8.md), [*sfscd*(8)](/sfscd/8.md), *sfsrosd*(8), *sfsrwcd*(8), [*sfsrwsd*(8)](/sfsrwsd/8.md), [*sfssd*(8)](/sfssd/8.md), [*vidb*(8)](/vidb/8.md)

The full documentation for **SFS** is maintained as a Texinfo manual.  If the **info** and **SFS** programs are properly installed at your site, the command **info SFS** should give you access to the complete manual.

For updates, documentation, and software distribution, please see the **SFS** website at *http://www.fs.net/*.

## AUTHOR

sfsdev@redlab.lcs.mit.edu
