Questions tagged [nohup]
68 questions
0
votes
1 answer
Shutdown server in background using PHP
I'm trying to shutdown an Ubuntu machine from PHP and am running into an issue if I want to delay the shutdown.
The PHP line I'm using is:
exec("sudo shutdown -h +5 &", $output);
Where 5 is however many minutes in the future I want to shutdown.
My…

William W
- 127
- 6
0
votes
3 answers
Run netcat in background on Ubuntu Lucid 10.04
I am trying to do a pg_dump from one server and simultaneously restore at the other server.
The command on source server (192.168.3.94):
pg_dumpall -v | nc 192.168.3.95 4000
The command on the target server (192.168.3.95):
nc -l 4000 | psql…

sayeed
- 1
- 1
- 1
0
votes
1 answer
`nohup: failed to run command 'node': No such file or directory` when running script through ssh
I have a remote server in which I serve a webserver using node (express) and nginx. I have a ./devops/deploy.sh script which starts the webserver and restarts nginx. Said script works correctly if I manually connect to the instance (ssh @)…

ffigari
- 103
- 1
- 4
0
votes
1 answer
`nohup` does not work properly with `&&`
I want to make a delayed background execution, for delay I use sleep [anyseconds] && [execution] for background I use nohup
Simple example of nohup alone:
nohup date &>> out.log &
And of course you can find print out of the execution of date in…

George Y
- 528
- 6
- 16
0
votes
1 answer
Script for no hangup, time-consuming process that shuts down the machine after finished
I'm trying to make a script that launches some time-consuming processes detached (using tmux) and also launches a process that works like a sentinel: it looks for the tmux process (in /proc/$(pgrep tmux)) and, if it is not there, I assume everything…

griloHBG
- 101
- 1
0
votes
1 answer
Creating a service on Centos 6 causes it to block on startup display
I'm trying to create a service on Centos 6, but it's executing on the startup console instead of in background, which means it never reaches the user interface - it just hangs on the startup display.
Here is the service:
#!/bin/bash
#
# run red5…

Jack BeNimble
- 194
- 11
-1
votes
1 answer
Nohup to run multiple PHP scripts
I have about 5 different PHP scripts that must be run by the server continuously even with the terminal closed.
How do I run the 5 scripts once via nohup, each with a log of what it generated, and be able to close the terminal?
I tried to run the…

Tom
- 289
- 3
- 13
-2
votes
1 answer
How to find out reason of python script stop working in background?
I've bought a VDS server some days ago just to have some Telegram Bots working 24/7.
I can't keep shell always open, so I've decided to use this "hack":
1. In Python script add #!/usr/bin/python3.4
2.
sudo chmod u+x mybot.py
sudo nohup ./mybot.py…

Groosha
- 113
- 1
- 7