11
4
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?
http://stackoverflow.com/questions/2593570/how-to-make-ssh-go-directly-to-specific-directory – Ciro Santilli 新疆改造中心法轮功六四事件 – 2016-08-15T10:05:36.933
Technically it was a
python
script ;-) – Johnsyweb – 2011-05-30T10:18:35.707