Questions tagged [nohup]
Run a command immune to hangups, with output to a non-tty.
61 questions
2
votes
2
answers
8k
views
Can't I scroll in the terminal up? Terminal shows only 24 rows? The scrollbar on the right fills the entire vertical height of the window?
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 ...
0
votes
0
answers
133
views
dynamically port forward for by passing Internet censorship
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 ...
0
votes
1
answer
781
views
How to run "Source file.sql" command from MySQL CLI in the background?
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 ...
0
votes
0
answers
47
views
nohup in alias has problem "nohup: missing operand" [duplicate]
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....
0
votes
1
answer
488
views
Don't kill remote script when local caller process gets killed
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 ...
1
vote
1
answer
9k
views
Running Rsync in the background
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 ...
0
votes
1
answer
493
views
nohup can't save the pid of the process into file with xargs command
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 $! > $...
0
votes
0
answers
470
views
capture process ID of nohup in crontab
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
...
0
votes
1
answer
327
views
run a command when a specific folder is empty
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 ...
2
votes
1
answer
3k
views
How to give input to a script running using nohup?
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 ...
7
votes
1
answer
28k
views
Cannot install nohup command
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 ...
0
votes
1
answer
3k
views
run continuous ping at startup
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 ...
5
votes
2
answers
4k
views
How can I fix nohup, byobu, tmux, screen, etc to not die when I disconnect from SSH?
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 ...
0
votes
0
answers
506
views
nohup works only for a few minutes after logout
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 ...
0
votes
1
answer
2k
views
How do I schedule a Python script to run in a Linux VM?
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