Hi,
I have a script as follows:
#!/bin/sh
nohup ./my_program >& /dev/null &
However, i get a "Generated or received a file descriptor number that is not valid" whenever I run it.
running the command up in prompt is ok though.
if i change the first line to #!/bin/csh
i get a then:... (4 Replies)
Hi,
Using nohup it sends output automatically to $HOME/nohup.out - how do I direct this output to another named file instead, so I can run several scripts in the background at once, directing their outputs into individual log files?
Cheers (3 Replies)
Hi
I submitted a long running executable without using nohup. Now, is there any way I can assure to keep that process ON even if my session gets killed?
Thanks
Bobby (3 Replies)
I find that if I use nohup (in bourne shell script) then all the interactive parts in my code are gone hidden... e.g., the places asking input from the user (such as ckyorn) will not be displayed. This is no good.
Is there a way to use nohup (or similar utility) and meanwhile, to keep the... (9 Replies)
hi,
im using nohup command to execute one script.
in the nohup.out im getting standerd output as well as standerd error in it.
i want standerd output and error in nohup.out and only standerd error in error.txt file.
im using command like following
nohup sh test.sh 2>error.txt &
... (5 Replies)
Hi,
I've read the man page on nohup.
But I still can't see what's the differences if
we just send a process to background versus
sending a nohup process to background.
eg:
myprocess &
vs
nohup myprocess &
Without nohup, myprocess would still run uninterruptible
at background... (2 Replies)
Hi,
I am running the below script. When i run the script normally it executes fine but when i run the same script using nohup it throws an error as getStatus.sh: syntax error at line 3: `(' unexpected . Can you let me know why it is so?
while
do
. $(dirname $0)/include.sh
cd... (2 Replies)
Good afternoon,
I'm have program that executes in background another programs. The main program would be programA and the programs executed by the main one, would be program1a, program1b and program1c.
I need the programs to continue the execution no matter if the shell connection is lost,... (6 Replies)
Shell : bash
OS : Oracle Linux 6.4
I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts.
For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Hi,
running this script in normal mode, no error occours
#!/usr/bin/ksh
VALUE=0
SUBJECT='sub'
ADDRESSES="aaa@gmail.com"
BODY='body'
while true
do
COUNT=$(tail -2500 /log/file.log | grep -i "error" | wc -l)
if ; then
echo "$BODY" | mailx -s "$SUBJECT" "$ADDRESSES"... (3 Replies)
Discussion started by: nash83
3 Replies
LEARN ABOUT ULTRIX
nohup
nice(1) General Commands Manual nice(1)Name
nice, nohup - execute a command at a lower priority
Syntax
nice [-number] command [arguments]
nohup command [arguments]
Description
The command executes command with low scheduling priority (Bourne Shell only). If the number argument is present, the priority is incre-
mented (higher numbers mean lower priorities) by that amount up to a limit of 20. The default number is 10.
The super-user may run commands with priority higher than normal by using a negative priority, for example, `--10'.
The command executes command immune to hangup and terminate signals from the controlling terminal. The priority is incremented by 5. The
command should be invoked from the shell with an ampersand (&) in order to prevent it from responding to interrupts by or stealing the
input from the next person who logs in on the same terminal. The syntax of is also different.
Options-number Increments the priority by a specified number up to a limit of 20. The default is 10.
Restrictions
The and commands are particular to If you use then commands executed with an ampersand (&) are automatically immune to hangup signals while
in the background. There is a built-in command which provides immunity from terminate, but it does not redirect output to nohup.out.
The command is built into with a slightly different syntax than described here. The form ``nice +10'' nices to positive nice, and ``nice
-10'' can be used by the superuser to give a process more of the processor.
Diagnostics
The command returns the exit status of the subject command.
Files
nohup.out standard output and standard error file under nohup
See Alsocsh(1), getpriority(2), renice(8)nice(1)