shell - Bash executing multiple commands in background in same line -
when try execute
-bash-3.2$ cd /scratch/;nohup sh xyz.sh>>del.txt &;exit
i getting following error..
-bash: syntax error near unexpected token `;'
i trying run detached process using nohup .. & . ';' works fine other commands except nohup sh xyz.sh>>del.txt &;
can tell problem here . thanks
you can try putting command between quotes if in bash shell
cd /scratch/ ; `nohup sh xyz.sh>>del.txt &` ; exit
you can take @ question
Comments
Post a Comment