Questions tagged [nohup]

The nohup standard utility and the nohup builtin from shells like csh, which cause the SIGHUP signal to be ignored

If you're using the tag, and are specifically using the GNU/coreutils implementation (the default on desktop and server Linux distros), also add or , since the GNU implementation also redirects the output of the command from a non-readable file, which results in behaviour not specified by the POSIX standard. If your question is about running processes in background, also add or , and any other relevant tags; do NOT use as an umbrella term for long-running jobs which should survive a logout or similar.

282 questions
39
votes
4 answers

nohup: ignoring input - what does it mean?

I am using nohup command from a while like nohup bash life.bash > nohup.out 2> nohup.err & In the nohup.err file I always have a line nohup: ignoring input. Can you please help me figure out what it means?
star
  • 595
11
votes
4 answers

Process java still being killed

I need to run a java program on my university servers. I'm remotely logging in through their servers via ssh So I used nohup like so: nohup java -jar project.jar & However when I logout and close the terminal then log back into the server my…
bigubosu
  • 213
5
votes
2 answers

when to use NOHUP

I would like to know the purpose of nohup these days. I ask because I read this Nohup is short for “No Hangups.” It’s not a command that you run by itself. Nohup is a supplemental command that tells the Linux system not to stop another command once…
ron
  • 6,575
3
votes
2 answers

Is it safe to use & and output redirection instead of nohup?

There's a wealth of stack exchange answers regarding nohup, here's a couple for reference: When do you need 'nohup' if you're already forking using '&'? Why use "nohup &" rather than "exec &" The canonical answer seems to be that using nohup…
3
votes
2 answers

redirect nohup output to another file

I am running a command with nohup on one of my servers, the output file has become too big and I predict that the process would need an extra month of execution before it completes. Is there a way to change the nohup output file while the process is…
Zaid Amir
  • 131
2
votes
1 answer

Script called with nohup dies sometimes when calling script exits

I wrote a little bash script showing a screenshot menu (screenshot-menu.bash): #!/usr/bin/env bash echo 'Select an option: s whole screen w active window r select region ' read -rsn1 key sleep 0.1 case $key in s|w|r) nohup ./screenshot.bash…
MaxGyver
  • 309
2
votes
1 answer

How could I add nohup to a bash command set?

I have the following command set which I sometimes run on my VPS. Basically it works fine; It runs in the background and does what I need. WB=$$; ( sleep 2h; echo "Removing PMA and exiting"; phpdismod mcrypt mbstring; …
user149572
2
votes
1 answer

Running script need two command with nohup

I want to run a script with nohup because it takes long time but it needs a password to run. how can I write the command using nohup. For example to run the script interactively I first run php hat and when it asks for a key or password I write…
2
votes
4 answers

How to run new background command sequentially if I already have a nohup background command running?

Say I already have a background running command1 nohup command1 & Now I want to submit command2 into background, But I don't want command2 to run immediately. I want command2 to start running after command1 is finished. How can I achieve this?
user15964
  • 713
0
votes
1 answer

How to avoid creating nohup.out file

nohup command &> /dev/null & This command still creates nohup.out file. Could you please help on how to avoid it?
0
votes
1 answer

trying to use nohup but keep getting another windows to show up

i want to launch windows 10 from virtualbox and i'm created a shortcut to my desktop and click on proprieties to get the commend line to start windows 10 from a menu, so i put the command in the command line using nohup so the terminal will close…
0
votes
1 answer

Why is nohup not bound with &?

When I use nohup I see it automatically "ignoring input and appending output to nohup.out". & is used to tell OS to run the program in background. Then why doesn't nohup imply &?
0
votes
1 answer

Why would the clear command won't work with nohup sleep?

Here are 2 code examples. Both are nohup codes in a bash string. The first one does the job and second doesn't. I ask why. sudo apt-get purge zip unzip nohup bash -c " sleep 20s; apt-get install zip unzip; " & The above command is executed in the…
user149572