Questions tagged [nohup]
68 questions
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…
![](../../users/profiles/61825.webp)
sayeed
- 1
- 1
- 1
0
votes
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!
![](../../users/profiles/41172.webp)
user41172
- 145
- 2
- 5
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 @)…
![](../../users/profiles/739853.webp)
ffigari
- 103
- 3
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…
![](../../users/profiles/516079.webp)
George Y
- 380
- 2
- 11
0
votes
0 answers
Problems after trying nohup rsync
I tried to run some rsync with nohup, which I couldnt get to run properly. I tried to delete the nohup.out file which it created but it seems everything in the directory I was working in is hanging now. I cannot even try ls in the directory…
![](../../users/profiles/947507.webp)
saphix
- 1
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…
![](../../users/profiles/615307.webp)
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…
![](../../users/profiles/279156.webp)
Jack BeNimble
- 184
- 9
-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…
![](../../users/profiles/298163.webp)
Groosha
- 113
- 1
- 7