Re: [PHP] shell_exec problem with bsdtar

2009-05-14 Thread Lester Caine
Lester Caine wrote: I'm trying to emulate Linux facilities on the windows servers, and have found bsdtar can be renamed tar.exe so that it will work the same as a shell_exec( tar ) call in Linux. The full paths are used to the files and the command line returns the extracted file name when

[PHP] shell_exec problem with bsdtar

2009-05-13 Thread Lester Caine
I'm trying to emulate Linux facilities on the windows servers, and have found bsdtar can be renamed tar.exe so that it will work the same as a shell_exec( tar ) call in Linux. The full paths are used to the files and the command line returns the extracted file name when run at a command

[PHP] shell_exec - asynchronous would be cool!

2009-02-18 Thread German Geek
Hi all, A while ago, i had a problem with shell_exec: I was writing some code to execute imagemagick to convert a bunch of images. This could take ages to execute and the page therefore ages to load. The solution was to get a linux box and append a at the end to do it in the background or make

Re: [PHP] shell_exec - asynchronous would be cool!

2009-02-18 Thread Ashley Sheridan
On Thu, 2009-02-19 at 10:30 +1300, German Geek wrote: Hi all, A while ago, i had a problem with shell_exec: I was writing some code to execute imagemagick to convert a bunch of images. This could take ages to execute and the page therefore ages to load. The solution was to get a linux box

Re: [PHP] shell_exec - asynchronous would be cool!

2009-02-18 Thread German Geek
Yes, believe it or not, when i was writing this, i thought about a db soln as well. Just hadnt done it that way back then. I guess with Linux one could do something like: shell_exec('{longexecutingprogram -with -params; mysql -uuser -ppass database query; } '); Surely it should be possible in

Re: [PHP] shell_exec - asynchronous would be cool!

2009-02-18 Thread Ashley Sheridan
On Thu, 2009-02-19 at 11:15 +1300, German Geek wrote: Yes, believe it or not, when i was writing this, i thought about a db soln as well. Just hadnt done it that way back then. I guess with Linux one could do something like: shell_exec('{longexecutingprogram -with -params; mysql -uuser

Re: [PHP] shell_exec seems to hang other web requests while running convert

2008-12-23 Thread German Geek
We can live with the fact that it will take a little longer to process the images. The image processing is only done by 2 people, about once a month, just to save them time (they would do it with photoshop otherwise and it is really boring and time consuming). In fact, i might set up an automatic

Re: [PHP] shell_exec seems to hang other web requests while running convert

2008-12-23 Thread Nathan Nobbe
On Tue, Dec 23, 2008 at 1:18 AM, German Geek geek...@gmail.com wrote: We can live with the fact that it will take a little longer to process the images. The image processing is only done by 2 people, about once a month, just to save them time (they would do it with photoshop otherwise and it

[PHP] shell_exec seems to hang other web requests while running convert

2008-12-22 Thread German Geek
Hi All, The following problem: Our client is converting pdfs to images with a web interface. At the moment I'm using convert from imagemagick with shell_exec (i know i could use the imagick module, but this would require quite a bit of recoding and time at the moment, it was originally running

Re: [PHP] shell_exec seems to hang other web requests while running convert

2008-12-22 Thread Nathan Nobbe
On Mon, Dec 22, 2008 at 9:06 PM, German Geek geek...@gmail.com wrote: Hi All, The following problem: Our client is converting pdfs to images with a web interface. At the moment I'm using convert from imagemagick with shell_exec (i know i could use the imagick module, but this would require

Re: [PHP] shell_exec seems to hang other web requests while running convert

2008-12-22 Thread German Geek
cron is a good idea, havent thought about that. One could use the nice program then to give it the lowest priority, because other requests are more important than this and another server gives the issue of transfering files back and forth. Another soln would be to run it with in the background

Re: [PHP] shell_exec seems to hang other web requests while running convert

2008-12-22 Thread Nathan Nobbe
On Mon, Dec 22, 2008 at 11:34 PM, German Geek geek...@gmail.com wrote: cron is a good idea, havent thought about that. One could use the nice program then to give it the lowest priority, because other requests are more important than this and another server gives the issue of transfering files

[PHP] PHP shell_exec

2007-02-27 Thread h
Hi I have been using the shell_exec command to perform several server queries quite succesfully i.e. analysing files systems by gettin ginformation returned by df -kP (shell_exec('df -kP')). do any of you guts know if it is possible to target a command like this on another server? So

Re: [PHP] PHP shell_exec

2007-02-27 Thread Németh Zoltán
2007. 02. 27, kedd keltezéssel 13.17-kor h ezt írta: Hi I have been using the shell_exec command to perform several server queries quite succesfully i.e. analysing files systems by gettin ginformation returned by df -kP (shell_exec('df -kP')). do any of you guts know if it is possible

Re: [PHP] PHP shell_exec

2007-02-27 Thread Andrei
Hi Ade, Sure you can. You must develop 2 scripts. One that will act as server and one as client. So if you want to get details of server B from server A you should have the server into B and client into A. Be sure the communication between these 2 servers is securised (using a

RE: [PHP] PHP shell_exec

2007-02-27 Thread Peter Lauri
@lists.php.net Subject: [PHP] PHP shell_exec Hi I have been using the shell_exec command to perform several server queries quite succesfully i.e. analysing files systems by gettin ginformation returned by df -kP (shell_exec('df -kP')). do any of you guts know if it is possible to target a command

[PHP] Re: PHP shell_exec

2007-02-27 Thread Colin Guthrie
h wrote: I have been using the shell_exec command to perform several server queries quite succesfully i.e. analysing files systems by gettin ginformation returned by df -kP (shell_exec('df -kP')). do any of you guts know if it is possible to target a command like this on another server?

[PHP] shell_exec, batch files, and IIS on Windows

2007-02-27 Thread Shu Chow
The manual entry for shell_exec has a comment that notes to execute .bat files with shell_exec, you need to pass the command through cmd.exe with the /c argument. I was wondering if anyone could share some insight on why that is. I've pretty much verified that this is the case. I can't

Re: [PHP] PHP shell_exec

2007-02-27 Thread Richard Lynch
On Tue, February 27, 2007 7:17 am, h wrote: I have been using the shell_exec command to perform several server queries quite succesfully i.e. analysing files systems by gettin ginformation returned by df -kP (shell_exec('df -kP')). do any of you guts know if it is possible to target a command

Re: [PHP] shell_exec, batch files, and IIS on Windows

2007-02-27 Thread Frank M. Kromann
The user that runs the php script under iis (IUSER_maschine name) should have permissions to execute the cmd.exe file, the .bat file and all the commands included in the .bat file. - Frank The manual entry for shell_exec has a comment that notes to execute .bat files with shell_exec, you

RE: [PHP] shell_exec, batch files, and IIS on Windows

2007-02-27 Thread Vincent DUPONT
: Tue 2/27/2007 22:20 To: Shu Chow Cc: php-general@lists.php.net Subject: Re: [PHP] shell_exec, batch files, and IIS on Windows The user that runs the php script under iis (IUSER_maschine name) should have permissions to execute the cmd.exe file, the .bat file and all the commands included

Re: [PHP] shell_exec, batch files, and IIS on Windows

2007-02-27 Thread Richard Lynch
On Tue, February 27, 2007 2:59 pm, Shu Chow wrote: The manual entry for shell_exec has a comment that notes to execute .bat files with shell_exec, you need to pass the command through cmd.exe with the /c argument. I was wondering if anyone could share some insight on why that is. I've

Re: [PHP] shell_exec, batch files, and IIS on Windows

2007-02-27 Thread Shu Chow
Thanks, guys, for the responses. I'll check the events and IIS logs tomorrow. This afternoon, I put the IIS user into the Administrators group, but no luck - the same exact thing, or lack of thing, happened. I told this to the IT head and he agrees that it's probably not a permissions issue.

Re: [PHP] shell_exec(zip.. ?

2005-08-08 Thread Burhan Khalid
Sam Smith wrote: shell_exec(zip -r ddd ddd); // don't work safe_mode off, works from command line php. What could it be? You need to give the full path to zip. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] shell_exec(zip.. ?

2005-08-03 Thread Sam Smith
shell_exec(zip -r ddd ddd); // don't work safe_mode off, works from command line php. What could it be? Details: drwxr-xr-x 2 zamzmith zamzmith 512 Aug 3 18:34 execTest/ -rw-r--r-- 1 zamzmith zamzmith 107 Aug 3 18:33 mkdir.php mkdir.php: ?php shell_exec(mkdir ddd; touch ddd/fff

[PHP] Shell_exec timeout question

2004-11-11 Thread Rui Francisco
HI, Does anybody know if its possible to execute a command through exec, shell exec, system and if the program doesn't terminate in N seconds returns control to PHP ? Thanks in advance Rui Francisco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Shell_exec

2004-04-16 Thread Enrico Weigelt
* Peter Hansen [EMAIL PROTECTED] [2004-04-15 20:36:28 +0200]: snip require_once(mainfile.php); include(header.php); $content = `/C:/Inetpub/com/html/bf1942live/vietnam.pl`; Are you working on dos/windows ? yes) win32 does (IMHO) not support external interpreter executables you

[PHP] Shell_exec

2004-04-15 Thread Peter Hansen
Hello i need some help with my battlefield livestat i have two website www.flashwebb.se and www.flashwebb.com and the help i need is on the www.flashwebb.com site You can look here http://www.flashwebb.se/bf1942live/vietnam.pl and see it on action so now i have download the php nuke and i

[PHP] shell_exec and accents

2004-01-29 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, I'm using shell_exec to call a command that can return accented characters. Unfortunately the accented characters are being transformed into other characters instead (for example, an acute e becomes a ','). How can I get the real output? I'm running on Windows 2000. In the command prompt

[PHP] shell_exec and accents

2004-01-29 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, I'm using shell_exec to call a command that can return accented characters. Unfortunately the accented characters are being transformed into other characters instead (for example, an acute e becomes a ','). How can I get the real output? I'm running on Windows 2000. In the command prompt

Re: [PHP] shell_exec with pipes

2003-11-16 Thread Jason Wong
On Thursday 13 November 2003 16:51, Mario Ohnewald wrote: [snip] == Checking audio filter chain for 44100Hz/2ch/16bit - 44100Hz/2ch/16bit... AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int AF_pre:

Re: [PHP] shell_exec with pipes

2003-11-13 Thread Jason Wong
On Wednesday 12 November 2003 21:48, Mario Ohnewald wrote: ok, i am running the script like this now: [snip] This seems to suggest that shell_exec() does not like your command and is not executing it, so: Try tackling it logically, step-by-step: Have you: 1) Turned on full error

Re: [PHP] shell_exec with pipes

2003-11-13 Thread Mario Ohnewald
Hello! I think we are almost there yet :) On Wednesday 12 November 2003 21:48, Mario Ohnewald wrote: ok, i am running the script like this now: [snip] This seems to suggest that shell_exec() does not like your command and is not executing it, so: Try tackling it logically,

RE: [PHP] shell_exec with pipes

2003-11-12 Thread Mario Ohnewald
Hi, $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH | cut -d \=\ -f 2); $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH | cut -d \=\ -f 2); echo Output: $var; Still gives nothing

Re: [PHP] shell_exec with pipes

2003-11-12 Thread Jason Wong
On Wednesday 12 November 2003 17:21, Mario Ohnewald wrote: $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH | cut -d \=\ -f 2); $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH |

Re: [PHP] shell_exec with pipes

2003-11-12 Thread Mario Ohnewald
ok, i am running the script like this now: START - $var=shell_exec(/home/lansinplayer/server/apache/htdocs/lansinplayer/getfilelength.sh /tmp/pitstop.mpeg); echo --$var--; STOP - Where echo returns nothing. I did a chmod 777 on the

[PHP] shell_exec with pipes

2003-11-11 Thread Mario Ohnewald
Hello List! I have tried to get this command working with php for about 2Weeks now, and i would like you to try to get this thing working. This shell command: /usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null| grep ID_LENGTH | cut -d = -f 2 gives me the result 16 back, the

Re: [PHP] shell_exec with pipes

2003-11-11 Thread Aaron Gould
Have you tried escaping the pipes and quotes? Try this: $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null\| grep ID_LENGTH \| cut -d \=\ -f 2); Mario Ohnewald wrote: $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null|

Re: [PHP] shell_exec with pipes

2003-11-11 Thread Mario Ohnewald
Have you tried escaping the pipes and quotes? Try this: $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null\| grep ID_LENGTH \| cut -d \=\ -f 2); nope, still get nothing back. Mario Ohnewald wrote: $var=shell_exec(/usr/local/bin/mplayer -identify

RE: [PHP] shell_exec with pipes

2003-11-11 Thread Jay Blanchard
[snip] $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null\| grep ID_LENGTH \| cut -d \=\ -f 2); [/snip] $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH | cut -d \=\ -f 2); Try just escaping the

RE: [PHP] shell_exec question - Solved

2003-10-09 Thread Chris Blake
To all who contributed to this thread, many thanks... I tried all the suggestions offered but still had the same problem. Today I copied php.ini-dist over to /etc, restarted Apache and everything works. This process was repeated many times during the last day or so, so I don`t know what happened

[PHP] shell_exec question

2003-10-08 Thread Chris Blake
Greetings learned PHP(eople); I`m using a shell_exec to get a list of files from a specified directory. When I run it locally on my machine i works. When I run it on the other machine I get = Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
safe mode is on, turn it off and restart webserver. Then you can check directory permissions. Chris Blake wrote: Greetings learned PHP(eople); I`m using a shell_exec to get a list of files from a specified directory. When I run it locally on my machine i works. When I run it on the other

Re: [PHP] shell_exec question

2003-10-08 Thread David Otton
On 08 Oct 2003 13:25:51 +0200, you wrote: I`m using a shell_exec to get a list of files from a specified directory. When I run it locally on my machine i works. When I run it on the other machine I get What Marek said. However, is there any reason you're not using readdir()?

Re: [PHP] shell_exec question

2003-10-08 Thread Chris Blake
On Wed, 2003-10-08 at 13:56, David Otton wrote: However, is there any reason you're not using readdir()? http://uk.php.net/manual/en/function.readdir.php I`ve got a whole bunch of other stuff happening using shell_exec, eg file searches etc I changed php.ini entry for safemode=on ,

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
Did you edit the right php.ini? Check out phpinfo() output for Configuration File (php.ini) Path Chris Blake wrote: On Wed, 2003-10-08 at 13:56, David Otton wrote: However, is there any reason you're not using readdir()? http://uk.php.net/manual/en/function.readdir.php I`ve got a whole

Re: [PHP] shell_exec question

2003-10-08 Thread Chris Blake
On Wed, 2003-10-08 at 14:51, Marek Kilimajer wrote: Did you edit the right php.ini? Check out phpinfo() output for Configuration File (php.ini) Path Yep, tried that...it states /etc/php.ini, and lists other location of /etc/php/, but that directory doesn`t contain a php.ini file --

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
I think that ALL files in other location are parsed, it does not need to be named php.ini Chris Blake wrote: On Wed, 2003-10-08 at 14:51, Marek Kilimajer wrote: Did you edit the right php.ini? Check out phpinfo() output for Configuration File (php.ini) Path Yep, tried that...it states

Re: [PHP] shell_exec question

2003-10-08 Thread Chris Blake
On Wed, 2003-10-08 at 15:02, Marek Kilimajer wrote: I think that ALL files in other location are parsed, it does not need to be named php.ini I checked in /etc/php/ and it lists the following files : 23_gid.ini 26_imap.ini 27_ldap.ini 34_mysql.ini and 41_readline.ini All these files

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
Then check your httpd.conf for php_(admin_)?(flag|value) Chris Blake wrote: On Wed, 2003-10-08 at 15:02, Marek Kilimajer wrote: I think that ALL files in other location are parsed, it does not need to be named php.ini I checked in /etc/php/ and it lists the following files : 23_gid.ini

Re: [PHP] shell_exec question

2003-10-08 Thread Chris Blake
On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) I checked it but there is nothing for php whatsoever. -- Chris Blake Support Consultant Office : (011) 782-0840 Fax: (011) 782-0841 Mobile : 083 985 0379 Website:

Re: [PHP] shell_exec question

2003-10-08 Thread Chris Blake
On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo page...

RE: [PHP] shell_exec question

2003-10-08 Thread Ford, Mike [LSS]
On 08 October 2003 15:19, Chris Blake contributed these pearls of wisdom: On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
Start here: grep -r safe_mode /* ;) Chris Blake wrote: On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still

Re: [PHP] shell_exec question

2003-10-08 Thread Burhan Khalid
Chris Blake wrote: OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo page... First, make sure to restart Apache after you do anything to php.ini Secondly, when php.ini is

Re: [PHP] shell_exec question

2003-10-08 Thread Marek Kilimajer
I thought about it, but safe mode can be set only in php.ini or httpd.conf Burhan Khalid wrote: Chris Blake wrote: OK, so I`ve tried all the suggestions posted, thanks guys...but then I went and deleted the php.ini file in /etc, and still when I use phpinfo(); it gives me the usual phpinfo

Re: [PHP] shell_exec question

2003-10-08 Thread John Nichel
Is there a .htaccess file in (or above) the directory that the script is in? If so, look to see if safe mode is turned on there. Chris Blake wrote: On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote: Then check your httpd.conf for php_(admin_)?(flag|value) OK, so I`ve tried all the

Re: [PHP] shell_exec

2003-08-14 Thread Juan Nin
From: Rodney Green [EMAIL PROTECTED] Hello. I've been attempting to write a script that will run a shell script using the shell_exec function and haven't had any success with getting it to run in the browser. My web server runs as the user 'apache.' I'm able to run the script successfully

[PHP] shell_exec

2003-08-14 Thread Rodney Green
Hello. I've been attempting to write a script that will run a shell script using the shell_exec function and haven't had any success with getting it to run in the browser. My web server runs as the user 'apache.' I'm able to run the script successfully from the command line as root but when I run

Re: [PHP] shell_exec

2003-08-08 Thread Rodney Green
Shell side: - must be readable and executable by user (apache or perhaps everyone) - suid bit work only for programs, not scripts I think - shell can only execute cmds for which it's effective user has sufficient permissions Try this (as root on webserver), if you can login as apache.

Re: [PHP] shell_exec

2003-08-08 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Shell side: - must be readable and executable by user (apache or perhaps everyone) - suid bit work only for programs, not scripts I think - shell can only execute cmds for which it's effective user has sufficient permissions

Re: [PHP] shell_exec

2003-08-06 Thread Christophe Chisogne
Rodney Green wrote: My web server runs as the user 'apache.' (...) the script successfully from the command line as root but when I run it in the browser the shell script executes but fails. (...) I've set the permissions of the script to be executable for anyone. Shell side: - must be readable

[PHP] Shell_exec() [ or what else? ] to kill root-started FTP daemon

2003-07-22 Thread Pietuka Krusti
Hello. I am trying to restart my FTP daemon by killing it and then starting it using the shell_exec() function: shell_exec('kill '.$pid ); Shell_exec does nothing by this - when i do ps -ef later, i see the daemon with the same pid still running. But it did return the correct pid when i ran:

Re: [PHP] Shell_exec() [ or what else? ] to kill root-started FTPdaemon

2003-07-22 Thread Marek Kilimajer
Try sudo (man sudo) Pietuka Krusti wrote: Hello. I am trying to restart my FTP daemon by killing it and then starting it using the shell_exec() function: shell_exec('kill '.$pid ); Shell_exec does nothing by this - when i do ps -ef later, i see the daemon with the same pid still running. But

Re: [PHP] shell_exec question....

2003-03-28 Thread David T-G
Kalin -- Please don't hijack threads. This question has nothing to do with your last questions regarding email address regular expressions. For that matter, *that* had nothing to do with php and perl. Mail and news messages have many headers, some of which serve to connect messages together.

[PHP] shell_exec question....

2003-03-27 Thread Kalin Mintchev
hello list, what has to happened so this actually works: $mstrng = shell_exec(/usr/sbin/zip 0041_27032003223711.zip 0041_27032003223711); if php is compiled as a module with apache is the apache owner the one that has to have writing permissions? if so - it does.. any help appreciated...

Re: [PHP] shell_exec problem

2002-11-15 Thread Jason Wong
On Friday 15 November 2002 03:02, Coert Metz wrote: Hi everybody I have some few problems with the shell_exec command. I want to send a fax with hylafax using the sendfax program in linux. When I try to do shell_exec (sendfax -n -d faxnumber faxfile) it will I have a little app which allows

[PHP] shell_exec problem

2002-11-14 Thread Coert Metz
Hi everybody I have some few problems with the shell_exec command. I want to send a fax with hylafax using the sendfax program in linux. When I try to do shell_exec (sendfax -n -d faxnumber faxfile) it will not work I can see in my httpd file that linux only gets the command 'sendfax' and not

[PHP] shell_exec('cp...

2002-10-08 Thread Alec Solway
I'm having problems running cp from shel_exec(). Nothing is returned, but the copy is unsuccessful. The same call works as user nobody from the actual shell. Any ideas? -Alec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shell_exec('cp...

2002-10-08 Thread Marco Tabini
Have you tried redirecting stderr to a file? On Tue, 2002-10-08 at 11:50, Alec Solway wrote: I'm having problems running cp from shel_exec(). Nothing is returned, but the copy is unsuccessful. The same call works as user nobody from the actual shell. Any ideas? -Alec -- PHP

[PHP] shell_exec root question

2002-08-08 Thread Hendrik Daldrup
Hi, i wrote a script, which runs echo shell_exec(exim -bp); so it simply gives me the current mail queue. However, it only works when called by user root, because exim won't let group or others execute it. So, i cannot use it with apache, because it runs as nobody. Well, i saw scripts that

[PHP] shell_exec() or passthru()

2002-03-23 Thread Douglas
Hi, I have a bash script I need to run. I have tried all the various program execution commands. My script never completes. It only get 1/4 of the way through. I have tried running the script in the background. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] shell_exec() or passthru()

2002-03-23 Thread Douglas
Hi, I have a bash script I need to run. I have tried all the various program execution commands. My script never completes. It only get 1/4 of the way through. I have tried running the script in the background. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] shell_exec() or passthru()

2002-03-23 Thread Andrew Lopucki
You may need to redirect output (both stderr and stdout) atleast that helped me with a similar problem. My system is Linux. On Saturday 23 March 2002 11:06 pm, Douglas wrote: Hi, I have a bash script I need to run. I have tried all the various program execution commands. My script never

Re: [PHP] shell_exec() or passthru()

2002-03-23 Thread Andrew Lopucki
And by redirect I mean to /dev/null possibly if you don't want to capture output. On Saturday 23 March 2002 03:52 pm, Douglas wrote: Hi, I have a bash script I need to run. I have tried all the various program execution commands. My script never completes. It only get 1/4 of the way

[PHP] shell_exec()

2002-03-15 Thread Carlos Fernando Scheidecker Antunes
Hello all, Does anyone know if shell_exec waits to have whatever it was passed to be executed before returning to the script? I am asking that because I need to write a script to compact files to a zip and then have it e-mailed to a predefined address. The files it will compact might have a

Re: [PHP] shell_exec()

2002-03-15 Thread Jason Wong
On Saturday 16 March 2002 06:21, Carlos Fernando Scheidecker Antunes wrote: Hello all, Does anyone know if shell_exec waits to have whatever it was passed to be executed before returning to the script? I am asking that because I need to write a script to compact files to a zip and then