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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -