Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
48 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 when I log out?
0
votes
1answer
50 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 ...
1
vote
2answers
167 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 ...
3
votes
2answers
340 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.
0
votes
1answer
271 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 runned in background instead nohup keeps to be foreground process in shell. SW version: ...
0
votes
2answers
628 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
1k 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 ...
1
vote
2answers
472 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 ...
2
votes
2answers
1k 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 ...
4
votes
3answers
1k 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 ...
4
votes
1answer
390 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.
5
votes
4answers
1k views

Keep a program running after closing a console, after the program has started

I've a program running in a Unix console on a remote Unix computer. I (stupidly) didn't run it using nohup &, and now I need to close the local console. Is there any way to have it keep running ...
3
votes
3answers
524 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
586 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 ...
2
votes
2answers
2k 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
637 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: ...