nohup Questions

3

I want my Terraform config to provision a server and start the service at the end by invoking a command and keep running it. I tried using nohup and screen using remote-exec: nohup: provisioner "...
Sympathetic asked 24/3, 2016 at 18:43

8

I am trying to call a function using nohup like this: function1(){ while true do echo "function1" sleep 1 done } nohup function1 & # ...... some other code but may be the function is...
Roller asked 8/5, 2013 at 8:7

6

Solved

I've tried running things like this: subprocess.Popen(['nohup', 'my_command'], stdout=open('/dev/null', 'w'), stderr=open('logfile.log', 'a')) This works if the parent script exits gracefully,...
Ragg asked 15/5, 2011 at 21:3

9

UPDATE: Based on below discussion I have edited my answer for more accurate description. I am trying to run a nohup command from jenkins. The full command is nohup java -jar /home/.../jar/server...
Coiffure asked 20/5, 2016 at 8:20

3

Solved

I am trying to run a string of nohup commands to get server statistics. However I get an error of 'No such file or directory'. Note that the 3 nohup calls are embedded in a script which is executed...
Cockatoo asked 17/4, 2012 at 15:5

6

Solved

When I run nohup some_command &, the output goes to nohup.out; man nohup says to look at info nohup which in turn says: If standard output is a terminal, the command's standard output is ap...
Wrongly asked 28/12, 2010 at 21:3

7

Solved

I am accessing a server running CentOS (linux distribution) with an SSH connection. Since I can't always stay logged in, I use "nohup [command] &" to run my programs. I couldn't find how to ge...
Assorted asked 29/5, 2013 at 8:37

17

Solved

I'm running a nohup process on the server. When I try to kill it my putty console closes instead. this is how I try to find the process ID: ps -ef |grep nohup this is the command to kill...
Dish asked 29/6, 2013 at 23:55

2

I use the command: nohup <command to run> & and it logs to the nohup.out file, however this log file could get pretty BIG so was wondering if there was a way to automatically save of...
Preternatural asked 7/12, 2015 at 17:27

5

Solved

nohup command & can keep a command running after closing the terminal. I want to play all mp3 music in directory Music. ls Music/*mp3 |xargs -d "\n" mplayer ls Music/*mp3 can list a...
Akkerman asked 20/6, 2020 at 5:9

5

Solved

I have created a script that moves files from one folder to another. But since the original folder is the Downloads folder I need it to always run in the background. I also have a standard Batch f...
Poppo asked 1/12, 2019 at 12:29

4

Solved

Boiling down to the smallest problem here is a simple python script that I want to run using nohup on linux. I run it using the following (on linux): nohup python test.py & The command seems...
Conjoin asked 25/8, 2015 at 20:35

4

Solved

I have a problem with node.js running a small web server serving files from the file system. When starting it with node server.js it works like a charm but when starting it with nohup or forever no...
Grider asked 17/5, 2013 at 7:57

6

I have a large script called mandacalc which I want to always run with the nohup command. If I call it from the command line as: nohup mandacalc & everything runs swiftly. But, if I try to i...
Uncivil asked 29/5, 2011 at 16:6

3

Solved

I am trying to run a script in the background even after closing the terminal. I have searched and searched and tried nohup and disown but neither seem to be working. When I close a terminal window...
Doolie asked 27/8, 2015 at 7:48

4

I think there are tons of similar posts but I haven't yet found a solution after searching around. Basically, I'm trying to run two scripts in the background. When I run them in the commandline, I...
Unquote asked 8/2, 2011 at 5:14

5

Solved

I want to run a Java jar file like this: java -jar spider.jar How to run it on the background on Windows? Like this on Linux: nohup java -jar spider.jar > /var/tmp/spider.log 2>&1 &a...
Tillion asked 1/8, 2010 at 12:51

2

Solved

I have a script that runs a gradle build like this... $HOME_DIR$CODE_DIR/gradlew -p $HOME_DIR$CODE_DIR build When I run this regularly like ./start.local.sh it works fine. But when I try to use ...
Tisbe asked 5/6, 2018 at 17:46

2

I have a simple remote ssh command in script, nohupssh.sh sleep 30 ssh -v -l developer server11 "/usr/local/jdk1.7.0_45/bin/jmap -histo:live 1770;" I run the script as follows: nohup nohupssh.s...
Derringer asked 3/4, 2014 at 6:14

10

Solved

Linux newbie here. I have a perl script which takes two command line inputs. I tried to run it in the background but this is what I got: [~user]$ nohup sudo ./ascii_loader_script.pl 20070502 ctm_...
Corrincorrina asked 4/7, 2013 at 16:45

7

Solved

I am using the following command to run a python script in the background: nohup ./cmd.py > cmd.log & But it appears that nohup is not writing anything to the log file. cmd.log is created...
Strongarm asked 16/10, 2012 at 17:9

3

Solved

i try to run php processes in background and start this from an php file. Some informations: PHP Version 5.2.17, php safe_mode is off, linux system. I start the process with exec, tried already s...
Humus asked 13/3, 2011 at 9:42

4

I am using SSH to start a background process on a remote server. This is what I have at the moment: ssh [email protected] "nohup process &" This works, in that the process does start....
Pegg asked 15/11, 2013 at 7:52

10

Solved

I have a process that is already running for a long time and don't want to end it. How do I put it under nohup (that is, how do I cause it to continue running even if I close the terminal?)
Atory asked 9/3, 2009 at 8:33

5

I'm trying to nohup a command and run it as a different user, but every time I do this two processes are spawned. For example: $ nohup su -s /bin/bash nobody -c "my_command" > outfile.txt &amp...
Jacky asked 30/7, 2012 at 18:42

© 2022 - 2025 — McMap. All rights reserved.