Questions tagged [nohup]

68 questions
2
votes
4 answers

Using nohup on Solaris 10

I need to transfer a large number of files over SFTP (only between Solaris servers) which takes a very long time. I cannot keep my PC on for this duration. I tried: nohup sftp server1 While the shell is open, I see files are downloaded. When I…
anurag kohli
  • 57
  • 1
  • 2
  • 7
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. …
Travis
  • 141
  • 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…
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…
Ajit Soman
  • 113
  • 2
  • 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…
JDS
  • 2,598
  • 4
  • 30
  • 49
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…
Akshay Bhasin
  • 11
  • 1
  • 3
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…
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…
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…
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…
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…
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
3 answers

can you run a shell command via nohup at later time?

I'd like to run a script at 6pm on a remote server but don't want to wait around to trigger it. I don't want to use cron since it's a one time deal. Can I do something like "nohup myscript &" with a "sleep" or "after" command? Thanks!
user41172
  • 165
  • 2
  • 5
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 > …
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…