* Keeping processes after xterm is closed
@ 2000-04-12 4:00 Steve Cousins
2000-04-13 4:00 ` Joerg Bruehe
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Steve Cousins @ 2000-04-12 4:00 UTC (permalink / raw)
Currently if I start a process in the background from a terminal window,
if I close that terminal window the process also dies. This doesn't
happen with other versions of UNIX that I have used and I was wondering
if there was a way to turn this "feature" off.
I am using OSF/1 4.0b.
Thanks,
Steve
--
_____________________________________________________________
Steve Cousins Email: cousins@umit.maine.edu
Research Associate Phone: (207) 581-4302
Ocean Modeling Group
School of Marine Sciences 208 Libby Hall
University of Maine Orono, Maine 04469
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Keeping processes after xterm is closed
2000-04-13 4:00 ` Joerg Bruehe
@ 2000-04-13 4:00 ` Steve Cousins
2000-04-14 4:00 ` Joerg Bruehe
0 siblings, 1 reply; 6+ messages in thread
From: Steve Cousins @ 2000-04-13 4:00 UTC (permalink / raw)
Joerg Bruehe wrote:
> > This doesn't happen with other versions of UNIX that I have used ...
>
> Are you sure ? IMHO, that is _really_standard_ unless you change the
> signal handling settings.
>
I've not had to deal with this when working with Solaris, or Linux. It has
been a while since I used HP-UX but I don't remember it with that OS either.
>
> > ... and I was wondering if there was a way to turn this "feature" off.
>
> Yes, explicitly ignore the SIGHUP: Either code that into your program,
> or use the "nohup" command. RTFM about the stdout/stderr redirection
> that implies.
Very nice.
>
> >
> > I am using OSF/1 4.0b.
>
> Beware of Y2K - officially, you need to upgrade to 4.0D (or higher).
Thanks. I'll look into it. I just inherited these machines (new job) and it
is the first time I have worked with OSF/1. Is there a standard site for
getting updates (like sunsolve.sun.com for Solaris and SunOS)?
Thanks,
Steve
_____________________________________________________________
Steve Cousins Email: cousins@umit.maine.edu
Research Associate Phone: (207) 581-4302
Ocean Modeling Group
School of Marine Sciences 208 Libby Hall
University of Maine Orono, Maine 04469
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Keeping processes after xterm is closed
2000-04-12 4:00 Keeping processes after xterm is closed Steve Cousins
2000-04-13 4:00 ` Joerg Bruehe
@ 2000-04-13 4:00 ` Andrew Duane USG
2000-04-14 4:00 ` Daniel Schunneman
2 siblings, 0 replies; 6+ messages in thread
From: Andrew Duane USG @ 2000-04-13 4:00 UTC (permalink / raw)
In article <38F4E521.ADF15DE7@umit.maine.edu> Steve Cousins <cousins@umit.maine.edu> writes:
>Currently if I start a process in the background from a terminal window,
>if I close that terminal window the process also dies. This doesn't
>happen with other versions of UNIX that I have used and I was wondering
>if there was a way to turn this "feature" off.
Read the manpage for "nohup".....
--
Andrew L. Duane (JOT-7) duane@zk3.dec.com
Compaq Computer Corporation (603)-884-1294
110 Spit Brook Road
M/S ZKO3-3/U14
Nashua, NH 03062-2698
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Keeping processes after xterm is closed
2000-04-12 4:00 Keeping processes after xterm is closed Steve Cousins
@ 2000-04-13 4:00 ` Joerg Bruehe
2000-04-13 4:00 ` Steve Cousins
2000-04-13 4:00 ` Andrew Duane USG
2000-04-14 4:00 ` Daniel Schunneman
2 siblings, 1 reply; 6+ messages in thread
From: Joerg Bruehe @ 2000-04-13 4:00 UTC (permalink / raw)
Hi Steve !
Steve Cousins wrote:
>
> Currently if I start a process in the background from a terminal window,
> if I close that terminal window the process also dies.
This is normal - when you close a window (years ago: when you switch off
a terminal), the "hangup" signal is sent to all processes controlled
from that window/terminal.
> This doesn't happen with other versions of UNIX that I have used ...
Are you sure ? IMHO, that is _really_standard_ unless you change the
signal handling settings.
> ... and I was wondering if there was a way to turn this "feature" off.
Yes, explicitly ignore the SIGHUP: Either code that into your program,
or use the "nohup" command. RTFM about the stdout/stderr redirection
that implies.
>
> I am using OSF/1 4.0b.
Beware of Y2K - officially, you need to upgrade to 4.0D (or higher).
HTH, Joerg Bruehe
--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
(speaking only for himself)
mailto: joerg@sql.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Keeping processes after xterm is closed
2000-04-13 4:00 ` Steve Cousins
@ 2000-04-14 4:00 ` Joerg Bruehe
0 siblings, 0 replies; 6+ messages in thread
From: Joerg Bruehe @ 2000-04-14 4:00 UTC (permalink / raw)
Hi Steve !
Steve Cousins wrote:
>
> Joerg Bruehe wrote:
>
> > > This doesn't happen with other versions of UNIX that I have used ...
> >
> > Are you sure ? IMHO, that is _really_standard_ unless you change the
> > signal handling settings.
> >
>
> I've not had to deal with this when working with Solaris, or Linux. It has
> been a while since I used HP-UX but I don't remember it with that OS either.
The only reason I can imagine is that your profile there may have set
SIGHUP to be ignored (in shell: by a 'trap' command ?).
However, I would not set up my system that way ...
> [...] Is there a standard site for getting updates [...] ?
From my bookmark list:
http://www.unix.digital.com/demos/freekit/bin/
http://ftp.digital.com/cgi-bin/grep-index
ftp://ftp.digital.com/pub/DEC/IAS/sys_check/sys_check.html
ftp://ftp.digital.com/rom/freeware-bin/
http://www.digital.com/info/misc/pub-domain-osf1.txt.html
ftp://ftp.digital.com/pub/GNU/
http://www.unix.digital.com/demos/
HTH, Joerg Bruehe
--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
(speaking only for himself)
mailto: joerg@sql.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Keeping processes after xterm is closed
2000-04-12 4:00 Keeping processes after xterm is closed Steve Cousins
2000-04-13 4:00 ` Joerg Bruehe
2000-04-13 4:00 ` Andrew Duane USG
@ 2000-04-14 4:00 ` Daniel Schunneman
2 siblings, 0 replies; 6+ messages in thread
From: Daniel Schunneman @ 2000-04-14 4:00 UTC (permalink / raw)
# nohup {command line} &
nohup(1) ignores all hangup & quit signals.
Steve Cousins (cousins@umit.maine.edu) wrote:
: Currently if I start a process in the background from a terminal window,
: if I close that terminal window the process also dies. This doesn't
: happen with other versions of UNIX that I have used and I was wondering
: if there was a way to turn this "feature" off.
: I am using OSF/1 4.0b.
: Thanks,
: Steve
: --
: _____________________________________________________________
: Steve Cousins Email: cousins@umit.maine.edu
: Research Associate Phone: (207) 581-4302
: Ocean Modeling Group
: School of Marine Sciences 208 Libby Hall
: University of Maine Orono, Maine 04469
--
DANIEL SCHUNNEMAN
ds@unx.dec.com
732.577.6037
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2000-04-14 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-12 4:00 Keeping processes after xterm is closed Steve Cousins
2000-04-13 4:00 ` Joerg Bruehe
2000-04-13 4:00 ` Steve Cousins
2000-04-14 4:00 ` Joerg Bruehe
2000-04-13 4:00 ` Andrew Duane USG
2000-04-14 4:00 ` Daniel Schunneman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox