Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Broken Nohup, processes go defunct on logout
kearly
post Jul 23 2004, 05:46 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 23-July 04
Member No.: 3,413



Hi All -
I have a bit of a problem with nohup. I am running Redhat 9 in a lab, same installation discs as another box in lab. When I log out of my machine, my processes (3-day long mathematical jobs) go defunct and continue to use memory. When I launch jobs, I use

$nohup filename &

Everything I have read says this should launch the process in the background and prevent a SIGHUP from killing the child processes of this. I have compared /usr/bin/nohup files with the other Linux machine, and they check out. Any help with anything would be much appreciated.

kearly
Go to the top of the page
 
+Quote Post
adam.stokes
post Jul 23 2004, 11:30 PM
Post #2


./configure
***

Group: Members
Posts: 65
Joined: 22-July 04
From: raleigh, NC
Member No.: 3,403



Not sure if this fixes your memory leak problem which could be a problem with the application you are running itself, but I find it easier to press ctrl+z then type bg to send my processes to the background.


--------------------
adam.stokes
Fedora Core rawhide, RHEL WS, ES, AS :)
Red Hat Certified Engineer
Go to the top of the page
 
+Quote Post
hughesjr
post Jul 24 2004, 07:57 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



When you use nohup, there is a file called nohup.out that is created and contains errors/output from the process. nohup.out is normally created in the directory the file is run from (if the user has permission to create files in that directory) or in the user's home directory (if the user can't write in the directory where the command was issued).

The contents of nohup.out might shed some light on the problem.

I use nohup to start several processes at boot time as other users on several different UNIX and Linux systems without problem ... and the way you started the application is correct.

If nohup isn't working for you, you can use at to start processes at specific times and not be logged in as well.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
kearly
post Jul 26 2004, 12:10 PM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 23-July 04
Member No.: 3,413



Thanks for responding guys. The nohup.out file that gets created in the working directory never has anything in it. Is that normal? Also, I tried using the ctrl-z method, and I get the same results. Is there any way to return /usr/bin to its defaults using the install discs? I'm afraid I don't have the know how to troubleshoot this on my own.
Go to the top of the page
 
+Quote Post
hughesjr
post Jul 27 2004, 08:40 PM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



try the command:

at now

you should see a prompt like this:

at>

Type in the command you normally use ... or to a script (minus the nohup or the &) and press enter.

Press Ctrl-D to exit.

See if the command starts running correctly ... then exit as that user, log back in and see if it is still working.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
kearly
post Jul 28 2004, 01:51 PM
Post #6


Whats this Lie-nix Thing?
*

Group: Members
Posts: 5
Joined: 23-July 04
Member No.: 3,413



I did what you recommended, hughes. Using the "at now" command, my process never even started running. It did, however, send an error message to my /var/spool/mail, and it looks like the problem is in fact the result of a utility within the program. I realize you probably can't really help with that, but I appreciate all the help.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 11th December 2017 - 03:59 PM