Questions tagged [nohup]
68 questions
2
votes
1 answer
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 input etc. and waits for an additional return keystroke. …
![](../../users/profiles/52910.webp)
Travis
- 151
- 2
- 6
1
vote
1 answer
nohup multiple sequential commands not logging output
I have a python script (which takes a lot of time to complete the execution) that I need to run several times varying the parameters. And it's executed in a remote machine. For instance and test purposes, take the following script test.py:
import…
![](../../users/profiles/494553.webp)
Hemerson Tacon
- 113
- 5
1
vote
2 answers
Create nohup.out file based on date
I am using nohup command to run a java web server application. This is the command i am using:
nohup java -jar WEB-SNAPSHOT.jar &
This command will create a nohup.out and my server logs are stored in this file. I want this file creation based on…
![](../../users/profiles/418568.webp)
Ajit Soman
- 113
- 1
- 8
1
vote
1 answer
Using nohup on remote SSH script, inside the script itself
I'm trying to use nohup + redirection + background operator ("&") to run a remote script via SSH and disconnect.
This works:
ssh -n fred@fredbox.local 'nohup sudo /opt/scripts/do-thing.sh arg1 arg2 >/dev/null 2>&1 '
I want to encapsulate the nohup…
![](../../users/profiles/69147.webp)
JDS
- 2,508
- 4
- 29
- 48
1
vote
1 answer
Nohup stops script after logging out
I have to run a python script in the background in my server. I am using the command:
nohup python MyScript.py &
in the command line. Now, when after running this I close the connection and log out and log in back it fails, I see that its not…
![](../../users/profiles/341956.webp)
Akshay Bhasin
- 11
- 1
- 3
1
vote
0 answers
Simple progress for rsync when piping output to a log file
I ran rsync with nohup and --progress:
nohup rsync --progress --[other-options] source destination &
tail -f nohup.out
When I'm tailing the file, I see the output with a changing last line (where the progress is being shown):
folder/file.ext
…
![](../../users/profiles/208507.webp)
ADTC
- 143
- 2
- 11
1
vote
0 answers
How to kill all process on ssh logout? (Kill running Background proccess started with screen etc)
Hi i have a multiuser centos server running. There are for example 3 users (non root) - each of them have their own homedir.
SSH Login is allowed (bash).
How could it be reached, if a user started a background process…
![](../../users/profiles/289156.webp)
bubele
- 11
- 3
1
vote
1 answer
how to run nohup when prompted for password and/or input parameter
I typically use nohup like so:
nohup ./myscript.sh 11111 > nohup.out &
Where 11111 is an input parameter. In this case, the application is prompting for a password and I'm unable to use nohup.
How do I get around this if I'm prompted for a…
![](../../users/profiles/287911.webp)
noober
- 111
- 1
- 2
1
vote
1 answer
Why does my command stop when I exit SSH?
I am running the following command in a loop (without notable memory leaks) as a cPanel user:
nohup php ~/www/app/console.php run clean 1> /dev/null 2> ~/www/logs/run_clean.log &
But when I exit SSH, the command always stops. When I do a htop as…
![](../../users/profiles/203737.webp)
Gabriel Santos
- 163
- 7
1
vote
1 answer
nohup create multiple process
I am using nohup for the script run inotify command, because inotify stop when I exit from terminal so I want the script to run on background. so I run the script like this
nohup /path/to/script.sh >/dev/null 2>&1 &
the problem is not nohup create…
![](../../users/profiles/114893.webp)
Daniel
- 13
- 7
1
vote
2 answers
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:
nohup ./script.sh $
Then the script runs as…
![](../../users/profiles/56526.webp)
lokheart
- 123
- 1
- 5
1
vote
3 answers
Virtualbox: prevent a virtual machine to go down after I log out from the consolle I lanched the VM from
I have this problem.
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 &
After that, I don't have the…
Daniele
1
vote
0 answers
Keeping processes alive when closing SSH connection on MobaXTerm
I'm facing somme issue when trying to keep process alive when shutting down session in MobaXTerm.
I have a java process which should run on a linux server.
I am using two commands, nohup and screen.
For nohup, i am using the following command > …
![](../../users/profiles/600852.webp)
Sebr
- 11
- 1
0
votes
0 answers
resume tar command when nohup/screen is not possible
I have a dataset which is quite big - a few petabytes.
Untarring it into a new filesystem takes a couple days. The problem is that the server does not allow me to have a process running over 24h - it gets killed, whether I want it or not.
This…
0
votes
1 answer
How to use nohup properly within an ssh session invoked by gitlab-runner?
I use gitlab runner's ssh executor to access an embedded device via ssh. I want to run a script there.
Basically the script invokes an upgrade routine on the device using dbus. Simple enough, isn't it?
#!/bin/bash
dbus-send --session --print-reply…
![](../../users/profiles/454807.webp)
darkmattercoder
- 113
- 5