RE: [PHP] exec/system question..

2004-07-21 Thread bruce
Wednesday, July 21, 2004 12:43 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] exec/system question.. Justin Patrin wrote: > On Wed, 21 Jul 2004 13:55:37 -0500, Michael Sims > <[EMAIL PROTECTED]> wrote: >> Sorry to followup to my own post, but I just did some qui

RE: [PHP] exec/system question..

2004-07-21 Thread Michael Sims
bruce wrote: > michael... > > something strange is happening/or i'm missing something basic... but > here's the sys response from your suggestion... > > [EMAIL PROTECTED] test]# php -r 'exec("bash -c 'exec nohup perl > /home/test/college.pl >/dev/null 2>&1 &'");' > [3] 2566 > -bash: ");: command no

RE: [PHP] exec/system question..

2004-07-21 Thread bruce
of the web server, although that may have something to do with what process/priv is running the app thanks, -bruce -Original Message- From: Justin Patrin [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 12:21 PM To: Michael Sims Cc: [EMAIL PROTECTED] Subject: Re: [PHP] exec

RE: [PHP] exec/system question..

2004-07-21 Thread Michael Sims
Justin Patrin wrote: > On Wed, 21 Jul 2004 13:55:37 -0500, Michael Sims > <[EMAIL PROTECTED]> wrote: >> Sorry to followup to my own post, but I just did some quick testing >> and apparently none of the above (nohup, setsid) is really >> necessary. As long as the output of the command is redirected

Re: [PHP] exec/system question..

2004-07-21 Thread Lars Torben Wilson
Justin Patrin wrote: On Wed, 21 Jul 2004 13:55:37 -0500, Michael Sims <[EMAIL PROTECTED]> wrote: Michael Sims wrote: Justin Patrin wrote: On Wed, 21 Jul 2004 10:09:52 -0700, bruce <[EMAIL PROTECTED]> wrote: 2) i could run the perl script, and have it somehow run in the background this would ba

RE: [PHP] exec/system question..

2004-07-21 Thread bruce
;' [3] 2566 -bash: ");: command not found -bruce -Original Message- From: Michael Sims [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 12:26 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] exec/system question.. bruce wrote: > my attempt (below) never seemed to

RE: [PHP] exec/system question..

2004-07-21 Thread Michael Sims
bruce wrote: > my attempt (below) never seemed to work properly... > > php -r 'exec("perl /home/test/college.pl /dev/null 2>&1 &");' <<< > works, but doesn't return until the perl app completes... > > > php -r 'exec("bash -c 'exec nohup perl /home/test/college.pl > /dev/null 2>&1 &'");' <<< can't g

RE: [PHP] exec/system question..

2004-07-21 Thread bruce
-r 'exec("bash -c 'exec nohup perl /home/test/college.pl /dev/null 2>&1 &'");' <<< can't get this to work/return any ideas as to what i'm missing... thanks -bruce -Original Message- From: Michael Sims [mailto:[EMAIL PROTECT

Re: [PHP] exec/system question..

2004-07-21 Thread Justin Patrin
On Wed, 21 Jul 2004 13:55:37 -0500, Michael Sims <[EMAIL PROTECTED]> wrote: > Michael Sims wrote: > > Justin Patrin wrote: > >> On Wed, 21 Jul 2004 10:09:52 -0700, bruce <[EMAIL PROTECTED]> > >> wrote: > >>> 2) i could run the perl script, and have it somehow run in the > >>> background this wo

Re: [PHP] exec/system question..

2004-07-21 Thread Justin Patrin
On Wed, 21 Jul 2004 13:16:01 -0500, Michael Sims <[EMAIL PROTECTED]> wrote: > Justin Patrin wrote: > > On Wed, 21 Jul 2004 10:09:52 -0700, bruce <[EMAIL PROTECTED]> > > wrote: > >> 2) i could run the perl script, and have it somehow run in the > >> background this would ba good, if there's a wa

RE: [PHP] exec/system question..

2004-07-21 Thread Michael Sims
Michael Sims wrote: > Justin Patrin wrote: >> On Wed, 21 Jul 2004 10:09:52 -0700, bruce <[EMAIL PROTECTED]> >> wrote: >>> 2) i could run the perl script, and have it somehow run in the >>> background this would ba good, if there's a way to essentially > [...] >> AFAIK there's no way to do this.

RE: [PHP] exec/system question..

2004-07-21 Thread Michael Sims
Justin Patrin wrote: > On Wed, 21 Jul 2004 10:09:52 -0700, bruce <[EMAIL PROTECTED]> > wrote: >> 2) i could run the perl script, and have it somehow run in the >> background this would ba good, if there's a way to essentially [...] > AFAIK there's no way to do this. When the request ends (user

Re: [PHP] exec/system question..

2004-07-21 Thread Frank Munch
On Wed, 21 Jul 2004 10:09:52 -0700, bruce <[EMAIL PROTECTED]> wrote: > > 2) i could run the perl script, and have it somehow run in the > background this would ba good, if there's a way to essentially run the > php script in the background such that it doesn't hang apache. Do you mean "...to e

Re: [PHP] exec/system question..

2004-07-21 Thread Justin Patrin
off the perl > script that i need to run... > > i'm using rh8.0... never played with cron jobs... > > thanks... > > -bruce > > > > > -Original Message- > From: Justin Patrin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 21, 2004 10:27 AM &g

Re: [PHP] exec/system question..

2004-07-21 Thread Justin Patrin
On Wed, 21 Jul 2004 10:09:52 -0700, bruce <[EMAIL PROTECTED]> wrote: > hey... > > looking at initiating a perl app from inside a php web app. basically, the > user will hit a button/start the app...the perl script will take awhile to > complete, so i'd like to run the app and then continue on with

[PHP] exec/system question..

2004-07-21 Thread bruce
hey... looking at initiating a perl app from inside a php web app. basically, the user will hit a button/start the app...the perl script will take awhile to complete, so i'd like to run the app and then continue on with the php process... so my question boils down to what's the best approach. 1)