NAME

  scmd - execute ssh cmds on remote host with user's env


SYNOPSIS

  scmd "[-s shell] [-e env_fil] cmd [;cmd]" host [ ... ]


OPTIONS

   -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;


DESCRIPTION

  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.


EXAMPLE

  [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


SEE ALSO

cfm-cmds-list


AUTHORS

           Copyright (c) 1998 1999  Derald Metzger 
  This file is part of the cfm pkg (GPL).