Tagged Questions
2
votes
1answer
54 views
redirection to file issues with nohup and pipe
For the following command:
ssh -t esolve@hostname 'sudo nohup bash -c "ls > log 2>&1 &"'
I always got error information:
nohup: ignoring input and appending output to ...
3
votes
3answers
221 views
Running multiple nohup commands in background
Got two commands cmd1 and cmd2. Of the two, cmd2 takes longer to finish. Need to run cmd2 and then cmd1.
Tried to run them in following way:
bash$ (nohup ./cmd2>result2 &) && nohup ...
1
vote
1answer
53 views
How get program name that produced an IO error redirected to a LOG in a nohup command?
I have a program that executes other programs in the background. The main program would be programA, and the programs executed by the main one, would be program1a, program1b and program1c.
I need the ...
3
votes
2answers
651 views
Is it possible for nohup to write the output both to the file nohup.out AND to the screen/terminal?
I am using the bash shell. I frequently use nohup to ensure that my processes are not stopped when I close the shell/terminal that started them. I use a syntax like:
nohup myprocess
When ...
7
votes
2answers
2k views
When do you need 'nohup' if you're already forking using '&'?
First this question is related but definitely not the same as this very nice question:
Difference between nohup, disown and &
I want to understand something: when I do '&', I'm forking ...
5
votes
3answers
770 views
Why are background jobs started by my shell living longer than the parent shell and controlling terminals?
It is commonly said that "&" puts the process into background execution, but that process would be killed when terminal is closed. But from what I see, everything I sent into background was ...