[mdlug] Execute a command on a host after ssh

R KANNAN rk111810 at gmail.com
Sat Aug 11 14:44:08 EDT 2012


Hi,

I want to execute a command (more precisely change to a directory) after
sshing into a machine. The directory location is dynamic and is to be
passed from a script. I could not find any way of doing this from the man
pages for 'ssh'.

Any suggestions on how this can be achieved.

Thanks for any help



More information about the mdlug mailing list