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
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 -uuse
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 w
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 lin
On Tue, Dec 23, 2008 at 1:18 AM, German Geek 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 is
> really bori
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
e
On Mon, Dec 22, 2008 at 11:34 PM, German Geek 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
> back and for
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
(w
On Mon, Dec 22, 2008 at 9:06 PM, German Geek 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 quite a bi
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.
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.
>
>
PROTECTED]
Sent: 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_) should
have permissions to execute the cmd.exe file, the .bat file and all the
commands included i
The user that runs the php script under iis (IUSER_) 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 need to pass th
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?
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
* Peter Hansen <[EMAIL PROTECTED]> [2004-04-15 20:36:28 +0200]:
> 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
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:
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 logica
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
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 getfileleng
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 | gre
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 g
[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 escapin
> 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/mpl
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/
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 t
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 suggesti
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 page.
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 a
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 whe
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
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...
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: http://www.pbpc.co
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
26_i
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 cont
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 /et
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
--
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 bu
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
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()?
http://uk.php
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
machin
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 successfu
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
> > sufficien
> 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 apac
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
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.
Bu
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.
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 a
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
>
>
> --
> PH
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
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
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 th
52 matches
Mail list logo