Re: [PHP] Unable to use exec() in php

2007-06-18 Thread Daniel Brown

On 6/18/07, MIKE YRABEDRA <[EMAIL PROTECTED]> wrote:



Is there a special way to allow only a specific user to execute the
system_exec() and exec() calls?



on 6/18/07 10:31 AM, Daniel Brown at [EMAIL PROTECTED] wrote:

> On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote:
>> On Monday 18 June 2007 13:15, makhan wrote:
>>
>> Stop top posting.
>>
>>> I am also using shell_exec('matlab -r myscript') to run
>>> my matlab script.
>>
>> Using shell_exec('matlab -r /path/to/myscript') would be a better idea.
>>
>> --
>> Crayon
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>  exec('date 2>&1',$ret);
> echo $ret."\n";
> ?>

--
Mike Yrabedra B^)>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




   Mike,

   This is technically thread hijacking.  You'll get a better
response (and less flames) if you start your own thread.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Unable to use exec() in php

2007-06-18 Thread Daniel Brown

On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote:

On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote:
> > On Monday 18 June 2007 13:15, makhan wrote:
> >
> > Stop top posting.
> >
> > > I am also using shell_exec('matlab -r myscript') to run
> > > my matlab script.
> >
> > Using shell_exec('matlab -r /path/to/myscript') would be a better idea.
> >
> > --
> > Crayon
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> exec('date 2>&1',$ret);
>echo $ret."\n";
> ?>
>
> --
> Daniel P. Brown

He's on windows ;)

Tijnema



/me smacks head.

"Doy!"

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Unable to use exec() in php

2007-06-18 Thread MIKE YRABEDRA


Is there a special way to allow only a specific user to execute the
system_exec() and exec() calls?



on 6/18/07 10:31 AM, Daniel Brown at [EMAIL PROTECTED] wrote:

> On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote:
>> On Monday 18 June 2007 13:15, makhan wrote:
>> 
>> Stop top posting.
>> 
>>> I am also using shell_exec('matlab -r myscript') to run
>>> my matlab script.
>> 
>> Using shell_exec('matlab -r /path/to/myscript') would be a better idea.
>> 
>> --
>> Crayon
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>> 
>> 
> 
>  exec('date 2>&1',$ret);
> echo $ret."\n";
> ?>

-- 
Mike Yrabedra B^)>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Unable to use exec() in php

2007-06-18 Thread Tijnema

On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote:

On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote:
> On Monday 18 June 2007 13:15, makhan wrote:
>
> Stop top posting.
>
> > I am also using shell_exec('matlab -r myscript') to run
> > my matlab script.
>
> Using shell_exec('matlab -r /path/to/myscript') would be a better idea.
>
> --
> Crayon
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

&1',$ret);
   echo $ret."\n";
?>

--
Daniel P. Brown


He's on windows ;)

Tijnema

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Unable to use exec() in php

2007-06-18 Thread Daniel Brown

On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote:

On Monday 18 June 2007 13:15, makhan wrote:

Stop top posting.

> I am also using shell_exec('matlab -r myscript') to run
> my matlab script.

Using shell_exec('matlab -r /path/to/myscript') would be a better idea.

--
Crayon

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




&1',$ret);
   echo $ret."\n";
?>

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Unable to use exec() in php

2007-06-17 Thread Crayon Shin Chan
On Monday 18 June 2007 13:15, makhan wrote:

Stop top posting.

> I am also using shell_exec('matlab -r myscript') to run
> my matlab script.

Using shell_exec('matlab -r /path/to/myscript') would be a better idea.

-- 
Crayon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Unable to use exec() in php

2007-06-17 Thread Jim Lucas

makhan wrote:

Thanks jim for your reponse , from no success means I am not able to get any
output. I am also using shell_exec('matlab -r myscript') to run my matlab
script. I see a new matlab.exe process starting in the windows task manager.
And the browser keeps busy trying to open this php page. 


I have made my matlab script to write on a text file but this file is never
created.



Try this




This should return to you any output that the program may have.

You might have to look into redirecting your standard out and your 
standard error


Jim





Jim Lucas-2 wrote:

makhan wrote:
Hi 


I am using exec() funtions to run simple commands like exec('date') in
php
without any success. I am using apache on my windows system. Can someno
guid
me what could be wrong.

I have checked the php.ini file and its not in the safe mode.

"without any success"

What exactly does this mean?

You get no output? Read this: and read up on the second argument.

http://us2.php.net/manual/en/function.exec.php

Jim

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php








--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them."

Unknown

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Unable to use exec() in php

2007-06-17 Thread makhan

Thanks jim for your reponse , from no success means I am not able to get any
output. I am also using shell_exec('matlab -r myscript') to run my matlab
script. I see a new matlab.exe process starting in the windows task manager.
And the browser keeps busy trying to open this php page. 

I have made my matlab script to write on a text file but this file is never
created.



Jim Lucas-2 wrote:
> 
> makhan wrote:
>> Hi 
>> 
>> I am using exec() funtions to run simple commands like exec('date') in
>> php
>> without any success. I am using apache on my windows system. Can someno
>> guid
>> me what could be wrong.
>> 
>> I have checked the php.ini file and its not in the safe mode.
> 
> "without any success"
> 
> What exactly does this mean?
> 
> You get no output? Read this: and read up on the second argument.
> 
> http://us2.php.net/manual/en/function.exec.php
> 
> Jim
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-use-exec%28%29-in-php-tf3937852.html#a11170086
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Unable to use exec() in php

2007-06-17 Thread Jim Lucas

makhan wrote:
Hi 


I am using exec() funtions to run simple commands like exec('date') in php
without any success. I am using apache on my windows system. Can someno guid
me what could be wrong.

I have checked the php.ini file and its not in the safe mode.


"without any success"

What exactly does this mean?

You get no output? Read this: and read up on the second argument.

http://us2.php.net/manual/en/function.exec.php

Jim

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Unable to use exec() in php

2007-06-17 Thread makhan

Hi 

I am using exec() funtions to run simple commands like exec('date') in php
without any success. I am using apache on my windows system. Can someno guid
me what could be wrong.

I have checked the php.ini file and its not in the safe mode.
-- 
View this message in context: 
http://www.nabble.com/Unable-to-use-exec%28%29-in-php-tf3937852.html#a11168623
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php