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
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
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
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
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
;'
[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
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
-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
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
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
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.
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
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
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
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
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)
16 matches
Mail list logo