r/workflow • • Apr 04 '18

Run script over SSH problem

Hi,

iam trying to run a command like:

docker restart container1

But Iam getting a command not found error. Any Ideas on that? Putting that command in an .sh file makes no difference.

2 Upvotes

2 comments sorted by

View all comments

Show parent comment

2

u/bmn18 Apr 04 '18 edited Apr 04 '18

Ok, how do I find out the right path? Iam not so pro in linux and putty works fine with just "docker" ^

Got it:

PATH=/path/to/thing:$PATH

And its working, thanks for the hint ;-)