[PHP] exec() problem

2009-11-14 Thread A. Mannini
Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l list email so i used exec(sudo run /usr/lib/mailman/bin/find_member -l list email,$output) and set /etc/sudoers

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sat, 2009-11-14 at 22:20 +0100, A. Mannini wrote: Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l list email so i used exec(sudo run

[PHP] exec() problem

2009-11-14 Thread A. Mannini
Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l list email so i used exec(sudo run /usr/lib/mailman/bin/find_member -l list email,$output) and set /etc/sudoers

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unescaped character that is causing an issue Thanks, Ash

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unescaped character that

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sun, 2009-11-15 at 00:25 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may

Re: [PHP] exec() problem

2009-11-14 Thread Kim Madsen
Ashley Sheridan wrote on 2009-11-15 00:23: Looked to all log...nothing! :-( What other logs did you look at? Then do this from a command line: su - the user apache runs as copy the command from the ph script and run it from commandline and let us see the error you recieve... -- Kind

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

Re: [PHP] exec() problem [SOLVED]

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

[PHP] Re: CURL running form PHP exec() problem!

2005-04-07 Thread cragland
I've encountered the same problem with exec(curl, system(curl, etc. PHP exits with sh: \curl: No file or directory. I'm wondering if there is some php shell option that has to be set. My other problem: Upfront, I can post and recieve data just fine with asp.net, perl, and java client scripts.

Re: [PHP] Re: CURL running form PHP exec() problem!

2005-04-07 Thread Richard Lynch
On Thu, April 7, 2005 11:54 am, cragland said: I've encountered the same problem with exec(curl, system(curl, etc. PHP exits with sh: \curl: No file or directory. I'm wondering if there is some php shell option that has to be set. Use full path names for EVERYTHING in exec. If curl, as I

[PHP] exec problem in php (2 times execution)

2003-06-27 Thread Lepretre Olivier
Hi all, I have a php code that tries to execute an rexec function for a at command. For this I coded it in this way : $str = exec (rexec -l usr1 -p usr1 myserver at now + 2minutes -f input file; the rexec function in itself is running fine in shell mode but whene I try to execute it through

[PHP] exec problem

2002-08-27 Thread Mark
i'm basicly trying to execute an executeable with this following script. $command = ../theApp/theapp; exec ( $command , $ValueIn, $ValueOut); echo $ValueOut; I'm getting a value of 0 returned, but from a command line the executable works fine and does what it is suposed to do is there any

Re: [PHP] exec problem

2002-08-27 Thread Andrew Brampton
If you are trying to receive the output of the command line you can use the backtick notation $list = `ls`; Hope that helps Andrew Mark [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i'm basicly trying to execute an executeable with this following script.

[PHP] exec problem

2002-08-08 Thread Li, Xin
Hi, I want to launch a program which writes a file on the server. But the process is under the owner of webuser who doesn't have write permission, and I don't want to set the directory writable to all users. I've searched the doc and tried every way but couldn't find a solution. Anybody knows

[PHP] exec problem

2001-07-31 Thread KPortsmout
Hi I'm trying to create a script which my cron will run once a day to backup my MySQL database, but the exec command doesn't want to work no matter what I try... exec(mysqldump -h localhost -u user -p pass --opt DataBase BACKUPS/backup.mysql) or die(Problem); I have tried adding the full