.\" sshc man page .TH man 1 "18 April 2009" "0.1" "sshc man page" .SH NAME sshc - run a command remotely using ssh .SH SYNOPSIS .B sshc user@host[:dir|=] command arg1... .SH DESCRIPTION .B sshc allows you to run a command remotely using ssh. Like .B sudo and unlike the normal .B ssh command, it runs the command directly, not via the shell. It does not require you to escape shell metacharacters. .B sshc is used by .B arcs. .P .SH EXAMPLES .PP To run a command in your remote home directory. .IP sshc nipl.net cat .bashrc .PP To run a command in the same directory on the remote host: .IP sshc nipl.net= pwd .IP .nf sam@hugo:~/code/arcs$ sshc nipl.net= pwd /home/sam/code/arcs .fi .PP To log in as sam, and chdir to a specfied directory. .IP sshc sam@nipl.net:/etc cat passwd .SH ENVIRONMENT .IP "ARCS_SSH, SSH" the command to use for ssh, e.g. SSH=fsh makes it go fast, especially with the -f option. $ARCS_SSH is used if it exists, else $SSH, else ssh. Get fsh from: .IP http://sam.nipl.net/code/fsh/fsh.tgz .SH AUTHORS .nf Sam Watkins (swatkins@fastmail.fm) .fi .SH "SEE ALSO" .BR arcs .BR ssh .BR fsh