Is it possible to do a simple inline style SSH command, for example:
ssh foo@bar.com { cd foo/bar && rm *.foobar }
ssh
Is it possible to do a simple inline style SSH command, for example:
ssh foo@bar.com { cd foo/bar && rm *.foobar }
Best Answer
Should you want to execute
cd foo/bar && rm *.foobar
on the remote machine, simply doand see
man ssh
...The parts you want: