I want to run two programsssh -f mike@c15-0330-02 'cd /home && nohup Rscript L_1.R> L_1_sh.txt 'ANDssh -f mike@c15-0330-03 'cd /home && nohup Rscript L_2.R> L_2_sh.txt 'I write a shell script asssh -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:
how to write a shell script to run multiple programs
linux;shell;shell script;terminal
Make sure your paths on the remote are correct. Most scripts don't live under /home