Tagged Questions
1
vote
0answers
53 views
how to run ssh -t user@remote 'sudo nohup bash -c “comand”' in background
I want to run a script on a remote host with sudo priviledge,
someone suggests that I should use nohup and ssh -t, like the following command
the script ls;sleep 10;echo finish is crafted here to ...
1
vote
2answers
81 views
How to know if a background job is finished?
I invoke a script (do_something) in background via another script (do_manythings) as below.
nohup do_something &
How would I know in the parent script (do_manythings) that the job invoked ...
3
votes
3answers
145 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
2answers
898 views
How to make a program which run from shell still live after close terminal? [duplicate]
Possible Duplicate:
How do I prevent a script from terminating when the shell exits?
I use gnome-terminal, and I run emacs under the terminal in the background by executing emacs &, but ...
7
votes
6answers
10k views
Execute remote commands, completely detaching from the ssh connection
I have 2 computers, localpc and remoteserver.
I need localpc to execute some commands on remoteserver. One of the things it needs to do is start a backup script that runs for a number of hours. I ...
0
votes
2answers
746 views
ssh + nohup does not work
I'm trying to run a program over SSH that keeps running when I disconnect. This Stack Overflow answer gave me the following command:
nohup sleep 30 > foo.out 2> foo.err < /dev/null &
...