The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to make a parent wait on a child shells running in background? albertashish UNIX for Advanced & Expert Users 1 08-01-2008 10:13 AM
How to know the status of process running in background sumanta Shell Programming and Scripting 8 03-04-2008 02:03 AM
running process in background kingdbag UNIX for Dummies Questions & Answers 3 11-10-2006 09:34 AM
how to get background job to foreground sandilya Shell Programming and Scripting 4 02-02-2006 08:29 AM
set background/foreground color in .profile dvella UNIX for Dummies Questions & Answers 3 08-14-2005 04:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 08-30-2008
drl's Avatar
drl drl is offline
Registered User
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 556
Hi.
Quote:
When invoked with the -p or -g flags, nohup arranges for
processes already running as identified by a list of process
IDs or a list of process group IDs to become immune to hang-
ups.

-- excerpt from Solaris man nohup
a useful addition to command nohup for Solaris users, but as era says, not usable (so far) in Linux -- nor aix, nor hp-ux, nor freebsd, etc. ... cheers, drl
Reply With Quote
Forum Sponsor
  #9  
Old 08-30-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
Quote:
Originally Posted by drl View Post
nor aix
Sorry, that was indeed a typo on my behalf. Correct is

$ nohup -p <PID>

in AIX.

bakunin
Reply With Quote
  #10  
Old 08-30-2008
RahulJoshi's Avatar
Registered User
 

Join Date: Aug 2008
Location: PUNE
Posts: 85
on AIX UNIX ksh it work use it:
press (ctrl+z ) to stop that job
then run (jobs) it who id of stoped job_id
the for running that job in foreground use(fg %<job_id>)
the for running that job in background use(bg %<job_id>)
and to start it in nohup use (nohup `bg %<job_id>`)
Reply With Quote
  #11  
Old 08-30-2008
drl's Avatar
drl drl is offline
Registered User
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 556
Hi, bakunin.
Quote:
Originally Posted by bakunin View Post
Sorry, that was indeed a typo on my behalf. Correct is

$ nohup -p <PID>

in AIX.

bakunin
In the version of aix that I use, I find:
Code:
$ jobs
$ version =o
aix 5.1
$ jobs
$ sleep 100 &
[1]     30552
$ nohup -p $!
Sending nohup output to nohup.out.
nohup: -p: A file or directory in the path name does not exist.
$ echo $!
30552
What version of aix are you using? ... cheers, drl
Reply With Quote
  #12  
Old 08-31-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
Quote:
Originally Posted by drl View Post
Hi, bakunin.

What version of aix are you using? ... cheers, drl
I tried that with AIX 5.3 ML6. Here is a link verifying that:

nohup Command

Still, i have seen in the meantime, while sifting through older documentation, that "-p" is nonstandard. I have never needed it until recently, when i looked it up and found that option - so i took it for granted, unaware that it is not as common as i thought.

bakunin
Reply With Quote
  #13  
Old 09-03-2008
Registered User
 

Join Date: Jun 2008
Posts: 9
i face the same problem with the nohup commnad,anyway if you want the nohup to run
successfully dont use the ctrl + Z,just close the telnet window and go out the system
login to the system again and you can see that your program is working
nohup /usr/bin/ksh <xxx>.sh
i try it on tru UNIX V4.0F and it works
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
background, foreground, job control, nohup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0