Yet Another nohup question...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Yet Another nohup question...
# 1  
Old 06-11-2008
Data Yet Another nohup question...

I am running a cobbled upnp sample program from /etc/rc.local with nohup. It is fine except it uses almost 90% CPU. If I stop it and run it from a shell it uses essentially no CPU as it should. It does have a little debug shell and in debugging I noticed a huge nohup.out file that it is apparently in a loop saying more or less "bad command".

So, the program thinks it is getting input and responding. Although there is no input that I know of and redirecting stdin doesn't help.

Any ideas on what might be going on or a simple way to fix it?

(I tried `nice` might mitigate the scheduling with other tasks but doesn't solve the problem)

Thanks,

jv
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with nohup

I have a script test1.ksh (Korn shell) and within that I am calling another script test2.ksh test2.ksh runs for a pretty long time and hence wanted to execute as nohup from within test1.ksh nohup ./test2.ksh Question 1) dont think the above is working , although executing the nohup... (1 Reply)
Discussion started by: alldbest
1 Replies

2. Shell Programming and Scripting

Saving nohup output to a file other than nohup.out

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)
Discussion started by: kraljic
7 Replies

3. UNIX for Dummies Questions & Answers

Nohup

Hi Every one , i wrote a script for nohpu ,which checks the service by using the port number and starts if it doesnt hear the port. It works good untill i colse the session. how to make it work even after closing the session .And aslo how to deamoize this script #!/bin/bash netstat -ptlen |... (2 Replies)
Discussion started by: vikatakavi
2 Replies

4. UNIX for Dummies Questions & Answers

nohup

Hi, We are trying to run a shell script using nohup command. But this scripts asks for user input (username and password). Once we enter credentials it should continue run in background. Can someone please suggest how can we implement this? we can't modify .sh file since they are provided by... (5 Replies)
Discussion started by: blak
5 Replies

5. Shell Programming and Scripting

Question about nohup

Whats the difference between nohup proc & and proc &? I've completely logged out without background procs running with nohup and noticed no difference. (2 Replies)
Discussion started by: stevensw
2 Replies

6. UNIX for Dummies Questions & Answers

When we need nohup

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)
Discussion started by: ehchn1
2 Replies

7. AIX

nohup.out

I have a program which writes to nohup.out ... over the time this nohup.out becomes a large file and i cannot read the contents of this file using a vi editor.... whe i do a vi nohup.out it gives an error insufficient memory.... do i need to clean this nohup.out periodically ( or compress it... (5 Replies)
Discussion started by: ramky79
5 Replies

8. UNIX for Dummies Questions & Answers

nohup - help!

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)
Discussion started by: bluemoon1
9 Replies

9. UNIX for Advanced & Expert Users

Help on nohup

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)
Discussion started by: bobbyjohnz
3 Replies

10. UNIX for Dummies Questions & Answers

Nohup

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)
Discussion started by: miwinter
3 Replies
Login or Register to Ask a Question
NOHUP(1)						    BSD General Commands Manual 						  NOHUP(1)

NAME
nohup -- invoke a command immune to hangups SYNOPSIS
nohup utility [arg ...] DESCRIPTION
The nohup command allows the specified utility to be protected from termination if the user should become logged out (for example, due to a modem line or TCP/IP connection being dropped). To do this, nohup sets the SIGHUP signal(3) (``terminal line hangup'') to be ignored, then executes utility along with any arguments. If the standard output is a terminal, the standard output is appended to the file nohup.out in the current directory. If standard error is a terminal, it is directed to the same place as the standard output. If the output file nohup.out cannot be created in the current directory, nohup attempts to create the file in the user's home directory. If the file nohup.out cannot be created, either in the current directory or the user's home directory, nohup will exit without invoking utility, with an exit value as described below. ENVIRONMENT
The following variable is used by nohup. HOME User's home directory. EXIT STATUS
The nohup utility exits with one of the following values: 126 The utility was found but could not be invoked. 127 The utility could not be found or an error occurred in nohup. Otherwise, the exit status of nohup will be that of utility. SEE ALSO
signal(3) STANDARDS
The nohup command is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible. BSD
July 15, 2005 BSD