RE:RE: [PHP] execute a perl script
| From: | 453110 at gmx dot de | Date: | Tue, 31 Oct 2000 11:32:04 +0000 |
| Subject: | RE:RE: [PHP] execute a perl script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22916@lists.php.net to get a copy of this message | ||
This is my php script:
<?php
exec("/usr/bin/perl /tmp/calc.pl /tmp/logfile.log 10-01-2000-12:00
10-10-2000-12:00 >>log.html");
?>
The perl script have read write execute rights (for all)
But nothing happent.
Whats is wrong ???
>
> Does apache have permissions to run the perl script?
> do a chmod 777 perl.pl if it doesn't or a chown (whatever user apache
> runs
> on) perl.pl
>
>
> Another thing to check. I'm not sure if exec does bash style
> processing.
> did you try
>
> exec ("\usr\sbin\perl pathtoperlfile\perl.pl logfile.log 12-10-2000
> 13-10-2000 >>log.html");
>
>
> (Replace pathtoperlfile with the path to the perl file)
> Perl may be in \usr\sbin (mine is).
>
>
> Have a look at the first line of the perl script for the correct path
>
> eg the first line.
>
> #!\usr\sbin\perl
> //... perl code
>
>
>
>
> -----Original Message-----
> From: 453110@gmx.de [mailto:453110@gmx.de]
> Sent: October 31, 2000 03:55 PM
> To: php-general@lists.php.net
> Subject: [PHP] execute a perl script
>
>
> how i can execute a perl script.
>
> I try some commands like:
>
> exec("perl.pl logfile.log 12-10-2000 13-10-2000 >>log.html");
>
> I try the same with system and the other two commands - but no change -
> Have somebody any Idea ???
>
> matthias
>
> --
> Sent through GMX FreeMail - http://www.gmx.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
Sent through GMX FreeMail - http://www.gmx.net