Questions tagged [nohup]

Ask Question

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

59 questions
0 votes 0 answers 14 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.... user avatar wayne
  • 101
0 votes 1 answer 42 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 ... user avatar Michael
  • 351
-1 votes 0 answers 20 views

How to raise alerts after a certain time frame from the time stamp of the file name?

#!/bin/bash files=() each_row=() raw_file_names=() directory=($(ls /home/cloudera/Downloads/20211006/*)) csv_file=(/home/cloudera/Downloads/log_20211006_1.log) completed="Completed" for i ... user avatar Sant
  • 1
1 vote 1 answer 2k views

Rsync running Rsyinc 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 ... user avatar tryinghard2
  • 11
0 votes 1 answer 275 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 $! > $... user avatar Rando Shtishi
  • 125
0 votes 0 answers 165 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 ... user avatar User19
  • 165
0 votes 1 answer 108 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 ... user avatar wishmaster
  • 113
2 votes 1 answer 1k 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 ... user avatar jindan
  • 193
4 votes 1 answer 13k 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 ... user avatar An Ignorant Wanderer
  • 705
0 votes 1 answer 1k 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 & I'm able to ... user avatar ether_joe
  • 1,033
4 votes 2 answers 2k 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 ... user avatar ironstorm
  • 41
0 votes 0 answers 325 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 ... user avatar Tao Hu
  • 1
0 votes 1 answer 1k 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 user avatar Marcelo Gazzola
  • 123
1 vote 2 answers 773 views

Disown, background, dump to null script

I used to have a script (way back when) that allowed me to execute ANYTHING in terminal and would magically disown and run in the background while dumping any output to null. It may have even nohup'd..... user avatar Falcor
  • 11
7 votes 3 answers 10k views

How to delete logs automatically after a certain time and restart the process that fills up the log file?

Server is Ubuntu 16.04. I have a process running with nohup that logs into a local file. This file gets big enough to consume 100% disk space. To resolve this I have to kill the process first and then ... user avatar DEVCNN
  • 173

15 30 50 per page1234

You Might Also Like