The nohup tag has no wiki summary.
128
votes
11answers
38k views
Can I nohup/screen an already-started process?
I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in ...
4
votes
4answers
306 views
Linux process management
I started a long running background-process (dd with /dev/urandom) in my ssh console. Later I had to disconnect. When I logged in, again (this time directly, without ssh), the process still seemed to ...
4
votes
4answers
18k views
There is any way to run processes in the background in Windows? nohup equivalent for windows
nohup runs a process in the background. There is any equivalent for Windows?
3
votes
6answers
2k views
job control and ssh
I can't seem to figure out a decent way to manage jobs over ssh. I want to start a job in an ssh session, logout, log back in, do a fg, check on the job, logout, then repeat the whole process. nohup ...
3
votes
5answers
3k views
Using nohup when initial input is required
On a linux system is there any way to use nohup when the process that is being nohuped required input, such as an rsync command that needs a password to be entered but will then run happily on its ...
3
votes
2answers
448 views
Redirect nohup to stdout
Is it possible to let a process started with nohup, write to stdout instead of in a file? or maybe in the file and on the screen?
nohup python start.py &
writes to nohup.out, but I'd like it to ...
3
votes
2answers
539 views
What is does the ampersand (&) symbol mean with `nohup`?
Ive seen tons of examples where a & follows the end of a command string, but I can't seem to find an explanation on what it does. It's not even in nohup's man page. Is this a shell thing?
...
3
votes
4answers
2k views
How do I find out the process id of the backgrounded process?
I've got a command (program) that I'd like to run with nohup and background it. Like
nohup command > logfile.txt &
How do I find out the process ID? I would like to be able to write the ...
3
votes
1answer
35 views
Move a running process in background and keep it running even if you disconnect
You already have a running process and you want to put it to run in background.
If you want to be sure that this will still run after you close you ssh connection, what should you do?
Note: you are ...
3
votes
2answers
1k views
2
votes
1answer
734 views
Nohup linux command waits for an additional return, how do I prevent this?
I'm running the following inside a bash script:
nohup java server_program.jar &
I want that to start running and go about its merry way. However, for some reason it says that it is ignoring ...
2
votes
4answers
1k views
Using nohup on Solaris 10
I need to transfer a large number of files over SFTP (only between Solaris servers) which takes a very long time. I cannot keep my PC on for this duration. I tried:
nohup sftp server1
While the ...
2
votes
4answers
928 views
nohup multiple sequential commands
I need to nohup two commands, one after another. The second command has to be executed AFTER the first command. Here are the commands:
tar -zcf archive.tar.gz.tmp mydir
mv archive.tar.gz.tmp ...
2
votes
3answers
303 views
How can I return to nohup after logout?
I'm working on an AIX and cannot install screen but want to use its capabilities. Basically I want to be able to run a session (maybe logout), then the same user but logged in again to be able to get ...
2
votes
2answers
152 views
trap “” HUP v.s Nohup ? How can I run a portion of shell script in nohub mode?
I want to run a shell script over the weekend, but I wanna make sure if the terminal loses
the connection, my script won't be terminated. I use nohup for the whole script invokation, but I also want ...
2
votes
1answer
1k views
Can I nohup/resume an existing tar process initiation in a ssh session?
First, if I stop a tar process, will it resume from where it left off or will it have to go through all the directories again (a lot of directories and files).
Second, am I correctly "disown"ing this ...
1
vote
1answer
139 views
nohup - no such file or directory
I'm trying to execute the following command on my CentOS 6.3 x64 server:
nohup "/usr/local/bin/php -v"
The result is:
nohup: ignoring input and appending output to `nohup.out'
nohup: failed to run ...
1
vote
2answers
311 views
terminate a processed launched by nohup
I have loaded debian etch into my NAS and I am trying to use it to routinely extract information from a website. Since there are quite a lot of pages to download, I used the nohup command, like this:
...
1
vote
1answer
177 views
reattaching a process started with nohup?
Is it possible to reattach a process started with nohup?
For example, start in a terminal:
nohup tail -f /dev/null &
Close the terminal. Now open a new terminal. How do you reattach the ...
1
vote
3answers
669 views
Virtualbox: prevent a virtual machine to go down after I log out from the consolle I lanched the VM from
I login remotely to a machine with Virtualbox installed by launching:
ssh -Y root@virtualbox
After that, I launch a Virtual Machine:
nohup VBoxSDL --startvm vm1
or
nohup VBoxSDL --startvm vm1 ...
1
vote
2answers
302 views
Estimating MySQL Query Runtime
I ran a MySQL query from command line using the following:
nohup mysql --user=root --password=XXXXXXXXX database < report.sql > results.tab
This query is extensive (5000 lines) and running a ...
1
vote
0answers
156 views
Why does my long-running nohup process quietly stop processing on Mac OSX?
I have a Ruby rake process that does a whole lot of intensive data loading and manipulation. When run a against a particularly large file, the process will run for several hours (which is fine), but ...
1
vote
1answer
210 views
Mysterious per-session CPU limiting?
TL;DR: CPU-hungry processes are sharing cores on a multi-core server while other cores sit idle, whereas I expect the Linux scheduler to distribute jobs evenly across cores. What could cause this ...
1
vote
1answer
994 views
How can I flush stdout for a process under nohup?
Is there a way to flush the buffer that nohup buffers stdout? From what I read in various places (eg. some place) is that I can modify the behaviour from within my programm. But that would be specific ...
0
votes
2answers
723 views
can you run a shell command via nohup at later time?
I'd like to run a script at 6pm on a remote server but don't want to wait around to trigger it. I don't want to use cron since it's a one time deal.
Can I do something like "nohup myscript &" ...
0
votes
3answers
1k views
Run netcat in background on Ubuntu Lucid 10.04
I am trying to do a pg_dump from one server and simultaneously restore at the other server.
The command on source server (192.168.3.94):
pg_dumpall -v | nc 192.168.3.95 4000
The command on the ...
0
votes
4answers
302 views
nohup command on Mac
I connect to some mac machine using SSH and run a command similar to:
nohup /var/root/install.sh param1 param2 </dev/null >/var/root/vvv.out 2>&1 & echo '' ; echo ERROR_CODE:$?
It ...
0
votes
1answer
108 views
How do I prevent a nohup process from being killed when ssh connection fails
I'm having an odd problem. I have a server process that gets started with nohup, and persists across logout and re-login just fine. However if I leave myself logged in and then get the "broken pipe" ...
0
votes
1answer
140 views
Shutdown server in background using PHP
I'm trying to shutdown an Ubuntu machine from PHP and am running into an issue if I want to delay the shutdown.
The PHP line I'm using is:
exec("sudo shutdown -h +5 &", $output);
Where 5 is ...
0
votes
1answer
799 views
How do I get nohup.out flushed more often?
On Ubuntu 10.04, I have a long Python program that prints a bunch of output; I run this under "nohup". However, it waits until the end to put all the text in nohup.out. When I run similar programs ...
0
votes
2answers
210 views
How to run at boot a program that will run until shutdown
I am using Debian (6) and need to run at boot an X server (without a login manager). What is the best way to do this?
From what I've read, the usual way is to have a script in /etc/init.d. I created ...