public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Make a running process nohup?
@ 2005-09-07  9:12 Qiangning Hong
  2005-09-07 12:30 ` Andrey Bulgakov
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Qiangning Hong @ 2005-09-07  9:12 UTC (permalink / raw
  To: gentoo-user

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! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Make a running process nohup?
  2005-09-07  9:12 [gentoo-user] Make a running process nohup? Qiangning Hong
@ 2005-09-07 12:30 ` Andrey Bulgakov
  2005-09-07 13:40   ` Michael Schreckenbauer
  2005-09-07 14:04 ` Matthew Cline
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Andrey Bulgakov @ 2005-09-07 12:30 UTC (permalink / raw
  To: Qiangning Hong

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Make a running process nohup?
  2005-09-07 12:30 ` Andrey Bulgakov
@ 2005-09-07 13:40   ` Michael Schreckenbauer
  0 siblings, 0 replies; 9+ messages in thread
From: Michael Schreckenbauer @ 2005-09-07 13:40 UTC (permalink / raw
  To: gentoo-user

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 <pid> 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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Make a running process nohup?
  2005-09-07  9:12 [gentoo-user] Make a running process nohup? Qiangning Hong
  2005-09-07 12:30 ` Andrey Bulgakov
@ 2005-09-07 14:04 ` Matthew Cline
  2005-09-07 17:16 ` Peter Karlsson
  2005-09-08  5:43 ` [gentoo-user] " Moshe Kaminsky
  3 siblings, 0 replies; 9+ messages in thread
From: Matthew Cline @ 2005-09-07 14:04 UTC (permalink / raw
  To: gentoo-user

On 9/7/05, Qiangning Hong <hongqn@gmail.com> 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 <job number>


HTH,

Matt

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Make a running process nohup?
  2005-09-07  9:12 [gentoo-user] Make a running process nohup? Qiangning Hong
  2005-09-07 12:30 ` Andrey Bulgakov
  2005-09-07 14:04 ` Matthew Cline
@ 2005-09-07 17:16 ` Peter Karlsson
  2005-09-08  2:12   ` Ow Mun Heng
  2005-09-08  5:43 ` [gentoo-user] " Moshe Kaminsky
  3 siblings, 1 reply; 9+ messages in thread
From: Peter Karlsson @ 2005-09-07 17:16 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Make a running process nohup?
  2005-09-07 17:16 ` Peter Karlsson
@ 2005-09-08  2:12   ` Ow Mun Heng
  2005-09-08  6:30     ` Willie Wong
  2005-09-08  7:04     ` Frank Schafer
  0 siblings, 2 replies; 9+ messages in thread
From: Ow Mun Heng @ 2005-09-08  2:12 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user] Re: Make a running process nohup?
  2005-09-07  9:12 [gentoo-user] Make a running process nohup? Qiangning Hong
                   ` (2 preceding siblings ...)
  2005-09-07 17:16 ` Peter Karlsson
@ 2005-09-08  5:43 ` Moshe Kaminsky
  3 siblings, 0 replies; 9+ messages in thread
From: Moshe Kaminsky @ 2005-09-08  5:43 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]

Hi,

* Qiangning Hong <hongqn@gmail.com> [07/09/05 12:20]:
> 
> Is it possible make a running process nohup so that I can leave it
> running after I logout without interrupt it?

I don't know a standard way to do it, but I think what might work is to 
run gdb within screen, in gdb say 'attach <pid>' (where <pid> is the 
process id of your process), then say 'handle SIGHUP ignore nostop' and 
finally 'cont' to continue the program. Didn't try it.

Moshe

> 
> -- 
> Qiangning Hong
> http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn)
> 
> Registered Linux User #396996
> Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
> Thunderbird! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=183>
> -- 
> gentoo-user@gentoo.org mailing list
> 

-- 
I love deadlines. I like the whooshing sound they make as they fly by. 
                                        -- Douglas Adams
    
    Moshe Kaminsky <kaminsky@math.huji.ac.il>
    Home: 08-9456841


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Make a running process nohup?
  2005-09-08  2:12   ` Ow Mun Heng
@ 2005-09-08  6:30     ` Willie Wong
  2005-09-08  7:04     ` Frank Schafer
  1 sibling, 0 replies; 9+ messages in thread
From: Willie Wong @ 2005-09-08  6:30 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Make a running process nohup?
  2005-09-08  2:12   ` Ow Mun Heng
  2005-09-08  6:30     ` Willie Wong
@ 2005-09-08  7:04     ` Frank Schafer
  1 sibling, 0 replies; 9+ messages in thread
From: Frank Schafer @ 2005-09-08  7:04 UTC (permalink / raw
  To: gentoo-user

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<CR>                           |
+--------------------------------------+

... 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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-09-08  7:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-07  9:12 [gentoo-user] Make a running process nohup? Qiangning Hong
2005-09-07 12:30 ` Andrey Bulgakov
2005-09-07 13:40   ` Michael Schreckenbauer
2005-09-07 14:04 ` Matthew Cline
2005-09-07 17:16 ` Peter Karlsson
2005-09-08  2:12   ` Ow Mun Heng
2005-09-08  6:30     ` Willie Wong
2005-09-08  7:04     ` Frank Schafer
2005-09-08  5:43 ` [gentoo-user] " Moshe Kaminsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox