I am trying to ssh from one machine to another within a Python script (Nautilus script). It works with the following:
ssh -t user@server "cd /home/some/dir ; csh"
However I don't like the idea of hardcoding the shell type.
Is there a way to set cwd within the ssh command without the need to hardcode the shell type?
pythonscript ;-) – Johnsyweb May 30 '11 at 10:18