I want to run two commands
ssh -f [email protected] 'nohup Rscript L_1.R > L_1_sh.txt'
and
ssh -f [email protected] 'nohup Rscript L_2.R > L_2_sh.txt'
I write a shell script test_1.shas following:
ssh -f [email protected] 'nohup Rscript L_1.R > L_1_sh.txt' ;
ssh -f [email protected] 'nohup Rscript L_2.R > L_2_sh.txt'
But it always run the first command. And it does not run the second command. The terminal shows
: command not found:
ps -aux?Rscriptallowed? Do you get any errors from the script/ssh commands? Does addingwaitafter the secondssh"fix" things?{}button in the editor, it'll indent your selection with four spaces, which marks that content as code; you can also just type four spaces at the beginning of each line yourself. Then we don't have to wonder if you're putting unnecessary literal backticks in your command (a mistake some people make), or just don't know how to use StackOverflow code formatting correctly.