delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/07/00:40:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 7 Jul 2005 00:40:24 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Karl M <karlm30 AT hotmail DOT com>
cc: cygwin AT cygwin DOT com, mmaloney AT rsasecurity DOT com
Subject: Re: starting background process and logging out
In-Reply-To: <BAY108-F2797442B681C55D5BC24DEB5D80@phx.gbl>
Message-ID: <Pine.GSO.4.61.0507070035150.24377@slinky.cs.nyu.edu>
References: <BAY108-F2797442B681C55D5BC24DEB5D80 AT phx DOT gbl>
MIME-Version: 1.0

Ugh, top-posting.  Reformatted.

On Wed, 6 Jul 2005, Karl M wrote:

> > From: Igor Pechtchanski
> > To: "Maloney, Michael"
> > Subject: Re: starting background process and logging out
> > Date: Wed, 6 Jul 2005 21:54:29 -0400 (EDT)
> >
> > On Wed, 6 Jul 2005, Maloney, Michael wrote:
> >
> > > I am having a problem using cygwin on both Windows 2k/2003. When I
> > > send a cmd into the background and then log out of the system, the
> > > process dies on me. I am using Ataman Telnet Server to login but
> > > that doesn't seem to be a factor.
> > >
> > > I have tried nohup without any luck as well.
> > >
> > > nohup startWebLogic.cmd > /dev/null&
> > >
> > > Does anyone have any other ideas for getting this process to stick?
> >
> > "setsid startWebLogic.cmd > /dev/null 2>&1"
> > (you have to close both stdout and stderr).
> >
> > If .cmd means a glorified batch file, you could also try
> > "cygstart --hide startWebLogic.cmd > /dev/null 2>&1".
>
> Hi All...
>
> This is a Windows NT class behavior. It is why I launch keychain as a
> service...so it survives logout.

FYI, on WinXP:

$ ps | grep sleep
$ ssh igor AT localhost 'setsid sleep 80 >/dev/null 2>&1 &'
igor AT localhost's password:
$ ps | grep sleep
     6232       1    6232       6836    ? 1019 00:37:54 /usr/bin/sleep
$

with no extra processes hanging around, AFAICS.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019