Re: [gentoo-user] Make a running process nohup?

2005-09-08 Thread Frank Schafer
On Thu, 2005-09-08 at 10:12 +0800, Ow Mun Heng wrote:
> On Wed, 2005-09-07 at 19:16 +0200, Peter Karlsson wrote:
> > On Wed, 7 Sep 2005, Qiangning Hong wrote:
> > 
> > > Is it possible make a running process nohup so that I can leave it
> > > running after I logout without interrupt it?
> > 
> > man nohup? (+nice/renice?)
> 
> I think you guys missed the point. OP mentioned "Running Process"
> 
> Not sure what disown does since there's no man pages on it. (as
> suggested by Matthew Cline)

$ man bash
+--+
| blah |
| blabla bla blab blabla   |
| ...  |
|/disown   |
+--+

... as mentioned, ``disown'' is a bash builtin ;-p

Regards
Frank

PS: This should do the trick for the initial problem.


> 
> -- 
> Ow Mun Heng
> Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
> 98% Microsoft(tm) Free!! 
> Neuromancer 10:11:16 up 2 days, 40 min, 7 users, load average: 0.74,
> 0.58, 0.78 
> 
> 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Make a running process nohup?

2005-09-07 Thread Willie Wong
On Thu, Sep 08, 2005 at 10:12:52AM +0800, Ow Mun Heng wrote:
> I think you guys missed the point. OP mentioned "Running Process"
> 
> Not sure what disown does since there's no man pages on it. (as
> suggested by Matthew Cline)
> 

And Matthew also said it was a Bash bulletin, so you should man bash
instead of man disown. 

Let me quote some juicy bits for the list:

...

   The shell exits by default upon receipt of a SIGHUP.   Before  exiting,
   an  interactive  shell  resends  the  SIGHUP  to  all  jobs, running or
   stopped.  Stopped jobs are sent SIGCONT to ensure that they receive the
   SIGHUP.   To  prevent the shell from sending the signal to a particular
   job, it should be removed from the jobs table with the  disown  builtin
   (see  SHELL  BUILTIN  COMMANDS  below)  or marked to not receive SIGHUP
   using disown -h.

...

   disown [-ar] [-h] [jobspec ...]
  Without options, each jobspec  is  removed  from  the  table  of
  active  jobs.   If  the  -h option is given, each jobspec is not
  removed from the table, but is marked so that SIGHUP is not sent
  to  the  job  if  the shell receives a SIGHUP.  If no jobspec is
  present, and neither the -a nor the -r option is  supplied,  the
  current  job  is used.  If no jobspec is supplied, the -a option
  means to remove or mark all jobs; the -r option without  a  job-
  spec  argument  restricts operation to running jobs.  The return
  value is 0 unless a jobspec does not specify a valid job.


-- 
English lessons for programmers #28: 
"Fewer" if of type int; where as "less" is of type double. 
Sortir en Pantoufles: up 27 days,  9:08
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Make a running process nohup?

2005-09-07 Thread Ow Mun Heng
On Wed, 2005-09-07 at 19:16 +0200, Peter Karlsson wrote:
> On Wed, 7 Sep 2005, Qiangning Hong wrote:
> 
> > Is it possible make a running process nohup so that I can leave it
> > running after I logout without interrupt it?
> 
> man nohup? (+nice/renice?)

I think you guys missed the point. OP mentioned "Running Process"

Not sure what disown does since there's no man pages on it. (as
suggested by Matthew Cline)

-- 
Ow Mun Heng
Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM
98% Microsoft(tm) Free!! 
Neuromancer 10:11:16 up 2 days, 40 min, 7 users, load average: 0.74,
0.58, 0.78 


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Make a running process nohup?

2005-09-07 Thread Peter Karlsson

On Wed, 7 Sep 2005, Qiangning Hong wrote:


Is it possible make a running process nohup so that I can leave it
running after I logout without interrupt it?


man nohup? (+nice/renice?)

Best regards

Peter K

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Make a running process nohup?

2005-09-07 Thread Matthew Cline
On 9/7/05, Qiangning Hong <[EMAIL PROTECTED]> wrote:
> Is it possible make a running process nohup so that I can leave it
> running after I logout without interrupt it?
> 

How about disown, a bash built-in?

$ disown -h 


HTH,

Matt

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Make a running process nohup?

2005-09-07 Thread Michael Schreckenbauer
Hi,

Am Mittwoch, 7. September 2005 14:30 schrieb Andrey Bulgakov:
> Hello Qiangning,
> Wednesday, September 7, 2005, 1:12:47 PM, you wrote:
> > Is it possible make a running process nohup so that I can leave it
> > running after I logout without interrupt it?
>
> Screen is not applicable?

you can attach screen to an already running process? How does this work?
Afaik there are some versions of nohup knowing the parameter -p  to do 
this. I do not know, if the gentoo-provided version has that (it's not 
mentioned in the man page).

regards
Michael



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Make a running process nohup?

2005-09-07 Thread Andrey Bulgakov
Hello Qiangning,

Wednesday, September 7, 2005, 1:12:47 PM, you wrote:

> Is it possible make a running process nohup so that I can leave it
> running after I logout without interrupt it?

Screen is not applicable?


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Make a running process nohup?

2005-09-07 Thread Qiangning Hong
Is it possible make a running process nohup so that I can leave it
running after I logout without interrupt it?

-- 
Qiangning Hong
http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)

Registered Linux User #396996
Get Firefox! 
Thunderbird! 
-- 
gentoo-user@gentoo.org mailing list