[26209] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 8395 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Sep 8 00:05:26 2005

Date: Wed, 7 Sep 2005 21:05:03 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 7 Sep 2005     Volume: 10 Number: 8395

Today's topics:
        application question <"h.v.niekerk at hccnet.nl">
        Launching And Detaching <hal@thresholddigital.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Thu, 08 Sep 2005 06:00:14 +0200
From: Huub <"h.v.niekerk at hccnet.nl">
Subject: application question
Message-Id: <431fb6a5$0$769$3a628fcd@reader10.nntp.hccnet.nl>

Hi,

I have to do a project that will combine computergraphics, AI and 
scripting. I know perl can be used for AI and scripting, but how about 
graphics (e.g. OpenGL)? I read the faq, but couldn't find an answer on that.

Thanks,

Huub


------------------------------

Date: Wed, 07 Sep 2005 18:01:39 -0400
From: Hal Vaughan <hal@thresholddigital.com>
Subject: Launching And Detaching
Message-Id: <Sv-dnSSmzIPd_oLeRVn-3Q@comcast.com>

I'm using one simple program to launch some daemons.  When I launch a
program, I use backticks.  (This is all on Linux, in bash, btw.)  I've
added "2>&1 >/dev/null &" to the command line, so it's like this:

        `/path/to/program 2>&1 >/dev/null &`;

I've noticed that if I include the '&' so the program detaches from the
shell, if I kill the launching program, the child process survives.  I've
also tried this by forking first:

        if (!fork()) {
                `/path/to/program 2>&1 >/dev/null &`;
                exit;
        }

I had the hope that if I forked and launched like this, once all the
programs were launched, the launching program would exit.  It doesn't.  Is
there a way I can launch a program, then have the first program exit, so
it's no longer using that bash instance (without killing it)?

Thanks!

Hal



------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 8395
***************************************


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