0

I want to run two programs

ssh -f mike@c15-0330-02 'cd /home && nohup Rscript L_1.R> L_1_sh.txt '

AND

ssh -f mike@c15-0330-03 'cd /home && nohup Rscript L_2.R> L_2_sh.txt '

I write a shell script as

ssh -f mike@c15-0330-02 'cd /home && nohup Rscript L_1.R> L_1_sh.txt ' &
ssh -f mike@c15-0330-03 'cd /home && nohup Rscript L_2.R> L_2_sh.txt ' &

But it always shows

: command not found:
: command not found:
: command not found:
  • Did the commands work on there own? i.e. ssh -f mike@c15-0330-02 'cd /home && nohup Rscript L_1.R> L_1_sh.txt ' – ctrl-alt-delor Apr 15 '15 at 9:55
0

Make sure your paths on the remote are correct. Most scripts don't live under /home

  • Did the questioner forget the ./ before the Rscript or was it something else. – ctrl-alt-delor Apr 15 '15 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.