When we run the command with ‘nohup’ and ‘&’
so that the command should run at background even the terminal get disconnected we have to press enter key 2 times. To overcome from this problem,use the below given method.
nohup joshiv.sh > joshiv.out 2> Error.err < /dev/null &
Or
nohup command_nam > command_nam.out 2> Error.err < /dev/null &
It will crate two file Output.out and Error.err .
It is good tip to use, in this way we can also get to know what was the output or if there was any error.
so that the command should run at background even the terminal get disconnected we have to press enter key 2 times. To overcome from this problem,use the below given method.
nohup joshiv.sh > joshiv.out 2> Error.err < /dev/null &
Or
nohup command_nam > command_nam.out 2> Error.err < /dev/null &
It will crate two file Output.out and Error.err .
It is good tip to use, in this way we can also get to know what was the output or if there was any error.
No comments:
Post a Comment