[97329] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: process running after logout, howto ?

daemon@ATHENA.MIT.EDU (Jan Carlson)
Mon Nov 2 16:55:22 1998

Date: Mon, 02 Nov 1998 16:24:28 -0500
From: Jan Carlson <janc@iname.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

"Heltzel, Dennis" wrote:

> You must use "nohup" at the beginning of the command if you intend to log
> out.

This is officially true, but on Linux, running bash, background jobs don't
seem to die when you log out, even if you forget to nohup.

>
> Just putting a & at the end will still result in a kill signal going to the
> process when you log out.
> Nohup (no hangup) causes the process to disconnect from your shell's process
> space and connect to "init", which is process 1 and never dies (we hope !).
>
> An alternative is to use the "at" or "cron" command. They are very useful
> for this sort of thing.
>
> > -----Original Message-----
> > From: Borek Lupomesky [SMTP:Borek.Lupomesky@ujep.cz]
> > Sent: Monday, November 02, 1998 7:12 AM
> > To:   RedHat Mailing List
> > Subject:      Re: process running after logout, howto ?
> >
> > On Mon, 2 Nov 1998, Claudiu Balciza wrote:
> >
> > > I use to start long jobs (20-30 hrs) on some remote system and I would
> > > like to logout for a while.  How can I do that ?
> >
> >    For non-interactive jobs use simply "&" at the end of command line. For
> > full-screen apps use screen(1).
> >
> >    Bye Borek
> >
> > --
> >
> > =====================================================================
> > BOREK LUPOMESKY, network administrator    University of J. E. Purkyne
> > WWW:       http://www.ujep.cz/~lupomesk/  Ceske mladeze 8
> > IRCnet:    Borek @ #usti                  Usti nad Labem, 40096
> > talk:      borek@ishtar.ujep.cz           The Czech Republic
> > PGP keyid: 9DD1C54D   ICQ: 10139578       tel: +420-602-376368
> > ==========[ MIME/ISO-8859-2 & PGP encrypted mail welcome ]===========
> >
> >
> > --
> >   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> >              http://www.redhat.com http://archive.redhat.com
> >          To unsubscribe: mail redhat-list-request@redhat.com with
> >                        "unsubscribe" as the Subject.
>
> --
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
>                http://www.redhat.com http://archive.redhat.com
>          To unsubscribe: mail redhat-list-request@redhat.com with
>                        "unsubscribe" as the Subject.

--

Jan Carlson
janc@iname.com   Scarborough, Ontario, Canada
Mailed with Netscape 4.5 on Red Hat Linux 5.1




-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post