Skip to main content

Questions tagged [nohup]

Run a command immune to hangups, with output to a non-tty.

2 votes
2 answers
8k views

Based on: Terminal output scrolling is gone (Headless 11.10 Server, Upgraded from 10.10) and https://superuser.com/questions/1331658/why-cant-i-scroll-in-the-terminal and my own dire situation right ...
michal roesler's user avatar
0 votes
0 answers
133 views

I want to make SSH port forwarding to solve and bypass censorship. I saw many examples and Youtube but I can't get what I want. Every month I must purchase a new VPS due to an advanced filtering ...
Asghar's user avatar
  • 1
0 votes
1 answer
781 views

I am currently on Ubuntu 22.04. I have over 30 SQL files that creates new databases and some of them are over 10 GB. I don't want to import those files into MySQL using MySQL < File.sql, because ...
Raul Chiarella's user avatar
0 votes
0 answers
47 views

Hi I was trying to create an alias to run a shell script in background: alias inj=nohup ~/software/idea-IU/bin/idea.sh in my ~/.bashrc But as I type inj in terminal, I got nohup: missing operand error....
waynewing's user avatar
  • 101
0 votes
1 answer
488 views

Problem I call a long running process via ssh. And it's necessary that this process will not be killed. The user may kill the initial process on its host and I cannot do anything about it. How to make ...
Michael's user avatar
  • 371
1 vote
1 answer
9k views

Trying to run rsync in the background rsync -rt /home/2/folder/1234 root@12345678:/stor/folder CTRL-Z Entering bg and it runs in the background but now when I exit my SSH connection it stops? I tried ...
tryinghard2's user avatar
0 votes
1 answer
493 views

In the script that I am building I am having problem saving the pid to file. If run in the terminal the command below: nohup mvn spring-boot:run > $HOME/logs/app.log 2>&1 & echo $! > $...
Rando Shtishi's user avatar
0 votes
0 answers
470 views

How can I capture and store the process ID of a nohup command that run in crontab? this is my cron 35 * * * * cd /home/ubuntu/aws/&&nohup python3 upload_s3.py >> output_upload_occ.txt ...
User19's user avatar
  • 165
0 votes
1 answer
327 views

I have a python script running which will loop through a folder files (do some work then delete the files there), the folder will eventually get emptied. I want to run this command when the folder ...
wishmaster's user avatar
2 votes
1 answer
3k views

I have a script running on my server, say test.sh. I executed it using the following command - nohup test.sh Now I want to pass an input quit to this script so that it'll terminate itself ...
sidhantunnithan's user avatar
7 votes
1 answer
28k views

I am trying to install the nohup command. When I run sudo apt-get install nohup I get: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to ...
An Ignorant Wanderer's user avatar
0 votes
1 answer
3k views

I'd like to have a script running in the background, which pings a remote host every 10 seconds or so. The script looks something like this: nohup ping -i 10 www.google.com & I'm able to ...
ether_joe's user avatar
  • 1,063
5 votes
2 answers
4k views

I'm running KDE Neon which is Ubuntu 18.04 Bionic (LTS) with the latest KDE desktop packages on top of it. Since upgrading to this from Xenial I have lost the ability for processes to survive SSH ...
ironstorm's user avatar
0 votes
0 answers
506 views

I connect to a remote server via SSH. And I want to run a php program in the background on the server after I log out. I have tried using "nohup", but the program only works for a few minutes and then ...
Tao Hu's user avatar
  • 1
0 votes
1 answer
2k views

I tried using crontab but didn’t work. Also, do I need a nohup to keep it running after exit the SSH connection? 02 19 * * * /usr/bin python3.7 myScript.py
Marcelo Gazzola's user avatar

15 30 50 per page
1
2 3 4 5