mklement0 / ttab

macOS and Linux CLI for opening a new terminal tab/window, optionally with a command to execute and/or display settings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ssh then perform ops?

wrabit opened this issue · comments

commented

Is it possible to, for example:

ssh somesite
cd some/dir
./somescript

Seems that it opens ssh but then doesn't fire the remaining scripts..

ttab 'ssh somesite; cd /home/somewhere'

Use the following:

ttab "ssh somesite 'cd /home/somewhere; ...'"

That is, pass the commands to execute in the SSH session as a single string to ssh, after the hostname.