Page 1 of 1

im php-script mit lynx weiteres php-script starten

Posted: 2003-08-01 11:20
by klaks
Hallo,

ich möchte in einem per cronjob über lynx ausgeführtem PHP-Script (scripta.php) mit system oder exec-Befehl wieder über lynx ein weiteres PHP-Script (sriptb.php) ausführen:

Code: Select all

in 'scripta.php'
<?php
system ("/usr/bin/lynx -auth=user:pw -dump http://domain.tld/verzeichnis/scriptb.php");
?>
klappt nicht und

Code: Select all

in 'scripta.php'
<?php
$command = "/usr/bin/lynx -auth=user:pw -dump http://domain.tld/verzeichnis/scriptb.php";
exec($command,$a,$b);
?>
klappt auch nicht.
Rückgabestatus ($b) beim exec-befehl ist 126 - was bedeutet das?

Was mach ich falsch?
Wäre schön, wenn mir jemand helfen könnte.

Gruß
klaks

Re: im php-script mit lynx weiteres php-script starten

Posted: 2003-08-01 11:32
by gamecrash
Was passiert denn, wenn Du

Code: Select all

/usr/bin/lynx -auth=user:pw -dump http://domain.tld/verzeichnis/scriptb.php
direkt von der Shell ausführst?

Re: im php-script mit lynx weiteres php-script starten

Posted: 2003-08-01 11:39
by klaks
Dann wird es ordnungsgemäß ausgeführt.