nohup is a POSIX command to ignore the HUP (hangup) signal.

learn more… | top users | synonyms

0
votes
2answers
24 views

Linux slightly different behaviour If we give '&' before io redirection '>' and after redirection

I was starting jboss recently in background in Linux and saw that if you run command as follows: nohup ./startjboss.sh > server.log & Output is : [1] 18835 [root@cnt5-01b downloads]# The ...
0
votes
1answer
45 views

can I `dtach` or `renice` graphical programs like `evince`?

I sometimes open PDF's and then want them "sort of" open "to read later", but I'm not looking at them at the moment. While I'm not looking at them I'd like the OS to spend less effort keeping them up. ...
0
votes
0answers
131 views

nohup process commands to detect if process is still running and if not, re-run process in lamp stack

I am running nohup to keep a php script running in the background. Is there anyway to ensure the process keeps running? Is there a command that can check to see if the process is still running and if ...
3
votes
2answers
664 views

Ctrl+c in a sub process is killing a nohup'ed process earlier in the script

I didn't know whether this belonged on SO (as it is a coding bug) but thought you guys would be more knowledgeable regarding the subtleties of the software used (so maybe even U&L could be ...
0
votes
0answers
92 views

Starting a Script with Nohup inside another Script

I have a server that runs several scripts, and every once in a while we receive an autogenerated alert mail saying that some are stopped. (It doesn't matter the reason.) Then we manually start all ...
1
vote
1answer
293 views

After exiting from ssh connection, process is killed/times out

I'm running a python script in the background on an Ubuntu ssh server. nohup python x.py & After a certain amount of time, maybe half an hour, the python script stops running when I come back into ...
0
votes
1answer
436 views

grep: can't open nohup.out

I am doing recursive grep (grep -r) but it is failing saying grep: can't open nohup.out How to make it going and grep in all directories. I have some idea about nohup but I am not interested in it. ...
1
vote
1answer
1k views

How to find out is a program run with nohup or not?

There is no difference in ps -ef | grep sleep output to commands: nohup sleep 60 & sleep 60 & In which way can I discover that program is run with nohup?
7
votes
4answers
7k views

Continue SSH background task/jobs when closing SSH

I have the same question as here but even beyond that. If I logout/exit the SSH connection, I need my program running in background. Before exit, I type bg and jobs to check background running task, ...
0
votes
3answers
2k views

How to execute linux command in background?

Currently, I'm using nohup command & to send it in background. But the problem is: if I execute nohup command & I get outout as : root@ubuntu:/home/test# nohup sleep 10 & [2] 52439 ...
1
vote
1answer
356 views

qsub -hold_jid -afterok loop not starting

I am trying to run a series of jobs submitted to the cluster, one after the other, by suplpying the following .sh script: Annotation_Loop.sh : #!/bin/bash job=`qsub run_IntersectBed_1.sh 0` for i ...
0
votes
0answers
42 views

ssh firefox endless connection, even when the ssh connection is closed

I want to build a connection to a server with the help of ssh and run firefox(reload website with the addon ReloadEvery). Up to here I got it to work. Now the next step would be to close the ...
1
vote
0answers
92 views

Why is there a long delay when using `nohup` on Linode

I have a shell script like: for((i=1;i<500;i++)) do python get_sequence.py done I want to run it on a Linode VPS. It would take a few days to run, so I'm going to use nohup ./run.sh &, so ...
0
votes
2answers
6k views

nohup output redirection to a different file

I use nohup quite often for important long running processes under linux/bash, so much so that nohup time my command with arguments && mv nohup.out my.log is almost an idiom for me. The ...
4
votes
1answer
2k views

Why a command launched with nohup isn't able to write file after user logout?

I'm using nohup to launch matlab and run a script which requires to read and write some given files. nohup matlab -nojvm -nodisplay -r 'MyScript'& This runs smoothly while I'm logged in but as ...
1
vote
0answers
32 views

Process is shutting down when started by script and special user

I have a situation where I want to use a script during a build process which stops a process and starts it again after updating its files as a last step. The process is started via a build system ...
2
votes
1answer
221 views

Passing Return Key via Shell Script

I'm using phpseclib to run a shell script on my server at a given interval. That script involves using nohup. For whatever reason, if there isn't a user ready to send SIGINT or a return to nohup once ...
5
votes
1answer
508 views

Nohup & Sass: Process keeps running but, after a while, *.scss files do not get compiled

I am using Sass on a CentOS 5.8 server and want it to keep running after SSH logout, so that other users can edit *.scss files for days or even weeks to come without any need to start the program each ...
2
votes
1answer
395 views

Correct Method of Utilizing nohup in Batch Process

What would be the best method of using nohup in a batch script with multiple calls inside the script. For example, I have a script called filebuilder.sh and it contains something like: ...
1
vote
1answer
2k views

Run remotly, in the background, using ssh, then log-out, keep process running, how? - Simply pls :-)

The following question has been asked millions of times (be patient towards it please :-)).. Why O why - can't I find ONE SIMPLE, CONCLUSIVE answer? - Would be highly appreciated! Is running a ...
5
votes
1answer
2k views

Nohup over ssh won't return

I am trying to do [me@myPc]$ ssh me@server "nohup myBashScript.sh &" My goal is to launch the process on the server, and then immediately return. It is not working: The job is started on ...
1
vote
2answers
149 views

How to resume simulations running in background?

I am running long-term transient simulations on a server. For making them to run in background, I use the command nohup from the netlist folder of the corresponding schematic. Tonight they got ...
2
votes
1answer
768 views

Is it possible to change a running process in linux, so that it doesn't quit upon logging out?

I know you can use nohup to keep a job running after logging out, but what about a process that's already running? Is there a way to change it's state, so that it continues to run even when I log ...
0
votes
1answer
469 views

Background process (nohup &) suspends/resumes when user logs out/logs in

Ubuntu Server 11.10 When a normal (non-root) user starts a process with nohup, when the user disconnects from the terminal the process (java) stops responding. When the user connects again, the ...
4
votes
2answers
2k views

Nohup and the difference between logout and exit on a remote shell

I have access to a remote Linux shell for work purposes. I have kept a python script running in the background using nohup. Now, if I want to exit the session, what is the difference between using ...
6
votes
2answers
6k views

How to attach to a nohup process?

If I start a process with nohup: nohup WHATEVER & then how can I see it again? I mean how to attach my terminal to it again under Linux, e.g.: Ubuntu 11.04 - just like with the screen package.
1
vote
1answer
1k views

Nohup does not run process in background

I run nohup bash -c "while [ true ]; do echo test; done" from PuTTy SSH client, but after this process is not running in background instead nohup keeps to be foreground process in shell. SW ...
0
votes
3answers
6k views

Using nohup in Ubuntu - how to make it not show the job number?

I'm running this command: $ nohup command > foo.out 2> foo.err < /dev/null & My problem is that even though nohup makes my command run in the background, it prints out something like ...
1
vote
1answer
5k views

Pipe/send command to process running on nohup that accepts input from STDIN

I have a program that I run using nohup program &. This program accepts input from STDIN. Is there any way to send text to the STDIN of a program that is running via nohup? This is on FreeBSD ...
4
votes
2answers
3k views

Can I force nohup output to the screen instead of a file?

When I run a script with nohup, the output is forced to the out.log file by default; is there a way to force the output to the screen instead of the file? I need to be able to see when my script gives ...
4
votes
2answers
4k views

What's the difference between nohup and “>& nohup.out &”?

nohup renders a process immune to the shell's SIGHUP, but even if I run this from my shell: bash -c 'while true; do sleep 1; date; done' >& nohup.out & then log out and log back in, bash ...
16
votes
3answers
15k views

How do I fork a process that doesn't die when shell exits?

If I run emacs from the shell: $ emacs foo & and then kill that shell, emacs dies. How can I run a command so that it will not die when the shell dies? I found references to nohup, but that ...
8
votes
1answer
1k views

STDOUT of a disowned program

As followup of this question, I would like to know where the STDOUT and STDERR of a program on which I've run disown -h is redirected to.
7
votes
4answers
5k views

Keep a program running after closing a console, after the program has started [duplicate]

Possible Duplicate: How do I detach a process from Terminal, entirely? I've a program running in a Unix console on a remote Unix computer. I (stupidly) didn't run it using nohup &, and ...
3
votes
4answers
2k views

How to launch a remote process through ssh and end the connection?

This is still blocking: ssh host nohup cmd This still leaves the connection open: ssh host nohup cmd &
0
votes
4answers
1k views

Issues ending script with tail -f

I use the following script to restart a Java server running on a Solaris Sun 5.10 box... pkill -9 java nohup ./start_java.sh & tail -f smx.log I SSH to the box (using Putty) to run the ...
5
votes
2answers
4k views

After-the-fact remote nohup with tcsh

I have a tcsh instance in an xterm that is running a long-term (weeks?) process. The Xvnc server it's running under went out in the weeds; it's consuming 100% CPU and is unresponsive. (This is a ...
1
vote
3answers
2k views

nohup problem when given command with arguments

Tried: while true; do date; sleep 1; done Got: Thu Aug 27 17:33:24 IDT 2009 Thu Aug 27 17:33:25 IDT 2009 Thu Aug 27 17:33:26 IDT 2009 ... But: nohup while true; do date; sleep 1; done Got me: ...