Questions tagged [nohup]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

Resume a process with a nohup command [duplicate]

I launched a python code on a remote GPU (with ssh) in the terminal without the nohup command (basically just 'python main.py') I wanted to make it run with nohup to reboot my pc. Still, I did not ...
0
votes
1answer
95 views

how to change directory and spin off process

I know how to change directory: cd path I know how to detach a process: command &, nohup command > /tmp/test_output.txt 2>&1 &, nohup command > /dev/null 2>&1 &, ...
2
votes
2answers
1k views

Retrieve process information from nohup command

I use nohup command to run shell scripts as the following: nohup ./run.sh & My question is: After logging out the terminal and coming back later, how can I retrieve the information about this ...
0
votes
0answers
331 views

nohup process keep shutting down

I am trying to run 10.000 processes to create asterisks phone accounts. This is to stress-test our Asterisk server. I called with php an exec() function to create a Linux command. nohup /usr/src/...
1
vote
0answers
130 views

How to ssh in, start top, and close ssh session with a custom ~/.toprc

If I log into my remote host via ssh and run top, it picks up the ~/.toprc configuration file. I can also run the following command successfully ssh -t <user>@<host> "top -b > top.dat" ...
3
votes
1answer
407 views

Remote code execution after tmux reboot

I've read about tmux-resurrect, but it's still not clear to me if I can do the following: start tmux session ssh to remote server launch long-running code on remote host kill tmux server (e.g. local ...
2
votes
2answers
10k views

nohup cannot find file or directory when running script to start davmail

I am trying to set up davmail on text based Ubuntu to run in server mode and am following the instructions here, but when I try to run the line nohup davmail.sh davmail.properties & I get the ...
0
votes
1answer
104 views

Create STD IN/OUT Buffer for a Program Running in a Screen Session

Environment Linux version 2.6 Screen version 4.03.01 I am running an application inside of a screen session. The program prints to STDOUT and reads from STDIN. What I would like to do: First, have ...
3
votes
1answer
126 views

nohup causing issues with mail

I'm having a strange problem with nohup and the mail process on OSX. I was writing a program using Xcode that zipped a folder and sent it to an email address using the following command: zip -r -X "...
1
vote
0answers
401 views

Linux, Screen / nohup not working for background process

I'm using a remove site (a mac if that makes a difference) to run some processes. The first time I sshed into it and set up the process using nohup / & before logging off. When I came back to see ...
3
votes
2answers
4k views

python runs differently with nohup

I have a python package that runs fine when I launch as python -m myproject. However, when I launch as nohup python -m myproject, I get an ImportError. Furthermore, when I launch as nohup python3 -m ...
1
vote
0answers
822 views

Nohup and & keep exiting

I am trying to run a process in the background, but every time I do, the terminal stands-by, then I press enter, and my process is exited. I have tried: nohup ./binary & nohup bash -c "./binary"...
1
vote
1answer
1k views

The nohup process isn't listed using `ps`

nohup can help user keeping process running after log-out. But while I log out & in again, the process python is gone. Before log out Log in again We can find the python process ...
0
votes
1answer
127 views

nohup on bash redhat is one processID different

I'm using capistrano to deploy a python service. I was trying to both start the service and also write a pidfile, so I can restart the service or stop the service later. The problem is the pidfile is ...
1
vote
0answers
2k views

Node nohup process is killed on closing putty (but not on exit)

I am running my node server on a cluster by remotely connecting to the server using Putty windows interface. I am running my node process as nohup .. & so that it runs in background and does not ...
0
votes
1answer
16k views

How to run a task in background in windows

I usually use nohup to run any task in background in linux nohup python sss.py & What is the similar command used to run a background task in windows?
-1
votes
1answer
1k views

command nohup tail with redirection in shell script not invoked properly under a particular situation

I have an issue where a tail command in bash script does not work correctly when called from remote by providing only 1 param out of 2 params. But it works correctly if: executed directly on local ...
5
votes
1answer
6k views

Nohup doesn't work when executing script from Jenkins [closed]

I have bash script which executes following nohup ws --port 8080 & when executing that script directly on remote server and closing connection - process still exists. But when i am using Jenkins ...
0
votes
1answer
894 views

Python logging class not working when sending stdout to /dev/null

I have a Python 3 script that has logging enabled (for debugging purposes). Whenever I run/execute this script it is working fine and the logfiles are created. I've also created a setup.sh-bash ...
0
votes
2answers
371 views

Forcing a process to background from bash script

I'm trying to crfeate a bash script that - amongst other things starts sunwait: /root/bin/sunwait sun up -0:00:00 54.453158N 11.013071E; mycommand & Sunwait is a binary that will wait for ...
2
votes
1answer
1k views

how to get output of a running nohup process if nohup.out gets deleted

I have a nohup process running on my FreeBSD 8.4 box. Initially I was looking at nohup console messages output through tail -f nohup.out But I accidentally deleted nohup.out file. How can I access ...
1
vote
2answers
491 views

Disown / background a command passed into bash

TL;DR at the bottom. I am trying to make a simple lock screen for my laptop running Arch / BSPWM. I found a program called cmatrix which has a screensaver flag that causes it to exit when a key is ...
0
votes
2answers
120 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
106 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. ...
15
votes
2answers
5k 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 ...
2
votes
1answer
998 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 ...
1
vote
1answer
2k 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. ...
3
votes
1answer
11k 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?
27
votes
4answers
49k 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, ...
2
votes
4answers
21k 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 root@...
2
votes
2answers
1k 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
88 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 PuTTY(...
2
votes
0answers
275 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 ...
5
votes
3answers
25k 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
5k 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
60 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
822 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
1k 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
1k 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: /usr/bin/...
1
vote
1answer
2k views

Run remotely, in the background, using ssh, then log-out, keep process running, how?

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 ...
11
votes
1answer
6k 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 server,...
0
votes
2answers
209 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
1k 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 ...
1
vote
1answer
595 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 ...
5
votes
2answers
8k 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 ...
15
votes
2answers
20k 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
8k 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 version:...
0
votes
3answers
8k 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 ...
4
votes
1answer
10k 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
5k 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 ...