Questions tagged [nohup]

nohup is a POSIX command to ignore the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out.

nohup is a POSIX command to ignore the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out. The HUP (hangup) signal is by convention the way a terminal warns depending processes of logout.

717 questions
0
votes
0 answers

how to use nohup with R script, and redirecting any save command to my local folder

I want to use nohup to run my script in R, but inside my script I usually save the variable in my local folder, moreover, I also want to redirect anywarning messages to my local folder as well, when I tried to use nohup command it usually doesn't…
DOSMarter
  • 1,485
  • 5
  • 21
  • 29
0
votes
2 answers

NOHUP Command In Linux

I am issuing a command $nohup sqlplus "/ as sysdba" @script.sql & And on executing this nohup.out file contains this error: Error 45 initializing SQL*Plus How to resolve it?
Ashish Anand
  • 3,531
  • 6
  • 34
  • 45
0
votes
1 answer

Unwanted exit after a while: Error can't convert str to float

I have written a little script that reads every hour from a website and search for a certain string. This string is a number with which i want to calculate. If i run the script with "nohup python3 /path/to/script &" it works for a while. After few…
Registered User
  • 1,892
  • 4
  • 15
  • 15
0
votes
1 answer

nohup in sh script not working

I'm having a problem with a sh script. I'm working on a sh script that allows me to execute a java script in background, and before executing it, check if it is currently running. The code is here: ## START ## start) echo $" " echo $"Checking for…
Alex_ES
  • 205
  • 2
  • 15
0
votes
1 answer

Use nohup when server goes down?

I am running tests on my computer (I am using Ubuntu ), that take up to 30-45 minutes. When the server I am working with goes down(for any kind of reason), my tests stop and I have to redo every test from the begging. I was wondering whether using…
FranXh
  • 4,481
  • 20
  • 59
  • 78
0
votes
3 answers

Execute command when job finishes

I would like a bash script to execute a command (which reports status information) when a certain job finishes. I am running (with a script) a number of programs and send them to background using nohup. When they finish I would like to execute a…
highsciguy
  • 2,569
  • 3
  • 34
  • 59
-1
votes
1 answer

Preparing script for updating different values through view and running it in server side

I have an update statement: Update xxbl_conducting_section_v set volatge=11000, drawing_id=123 where spid in (23, 11,22) I need to run this script in nohup(server side for different voltages and different spids. There are 11000,22000,66000,13200…
-1
votes
1 answer

Print to console specific lines from log file generated using nohup command

I am running the following command: nohup myscript.sh &> file.log & The process takes very long time to complete. The nohup will collect the output and error and write it into the file.log above. myscript.sh will activate scripts in the background…
Ahkam
  • 1
  • 1
-1
votes
1 answer

How to use nohup with curly braces?

I try to run the following command (ref.) using nohup, which basically separates stdout and stderr into two processes. { foo 2>&1 1>&3 3>&- | sed -u 's/^/err: /'; } 3>&1 1>&2 | sed -u 's/^/out: /' The foo script is like below. #!/bin/bash while…
user180574
  • 5,681
  • 13
  • 53
  • 94
-1
votes
2 answers

subprocess.Popen(nohup python try.py -- port 8080 &) unrecognized arguments:

I want to use subprocess.popen to start a serving, start_predict = "nohup python predictor.py --port 8086 &" start_predict = start_predict.split(" ") subprocess.Popen(start_predict) But it told me error: unrecognized arguments: & and I need to…
david129
  • 13
  • 2
-1
votes
1 answer

nohup not working as expected, job terminates on exit

I'm currently trying to run a python script on a remote server. Of course, if I close the terminal the script terminates. I've tried to use nohup with the following command: sudo nohup python3 scriptName.py & which returns process and id [1]…
-1
votes
1 answer

how can i made same output file in nohup shell script code?

Now, I'm running on server. Log management is performed with nohup, the result is output in 5 units. nohup shell script code is like this. nohup python main.py & nohup python main.py & nohup python main.py & nohup python main.py & nohup python…
bhnvx
  • 25
  • 6
-1
votes
1 answer

-bash: syntax error near unexpected token `do'

I do the following at my Mac terminal: sudo for i in `seq 0 9`; do nohup my_command > log_$i.txt & done but I receive the following error: -bash: syntax error near unexpected token `do' What's the problem and how can I fix it? P.S. I tested some…
Outcast
  • 4,967
  • 5
  • 44
  • 99
-1
votes
3 answers

How to distinguish between two running Linux scripts with the same name?

I use SSH to connect to Linux, maybe run a Linux script multiple times, and use nohup to suspend these processes, and then close the SSH connection. After the next SSH connection to Linux, how can I distinguish between different scripts and get…
-1
votes
1 answer

where will be nohup.out file created when shell script is executed by Java Runtime?

when I'm executing shell script through java Runtime.exec(), where do I find nohup.out file. String command = "nohup ksh /home/xyz/script.ksh &"; Runtime rtime=Runtime.getRuntime(); rtime.exec(command);
1 2 3
47
48