scmd - execute ssh cmds on remote host with user's env
scmd "[-s shell] [-e env_fil] cmd [;cmd]" host [ ... ]
-s shell Shell to use -e env_fil Env file to source before executing cmd cmd ;... Cmds to execute on remote hosts. quotes may be rqd host ... List of hosts on which to execute the cmd;
Execute cmds on one or more remote hosts with the user's env. $SHELL and $HOME of the executing account are used as defaults to locate and source the login env on the remote host.
[dmetz@tcs1 dmetz]$ scmd "ls -l .bash_profile" remotesensing.org ## ssh remotesensing.org ". /home/dmetz/.bash_profile; ls -l .bash_profile" -rw-r--r-- 1 dmetz dmetz 2751 Aug 28 10:09 .bash_profile
cfm-cmds-list
Copyright (c) 1998 1999 Derald Metzger This file is part of the cfm pkg (GPL).