Re: Brauche Hilfe bei Mini-Batchprogramm
Michael Wenger <[email protected]>
| Newsgroups | gmane.linux.suse.programming |
|---|---|
| Message-ID | <[email protected]> |
Moin Bodo,
Bodo Kaelberer schrieb am 17.11.2005 22:04:
> Also konkret hoffe ich auf folgende Lösung:
>
> ============= Script 1 ===========
> $command = "mybatch $JOB_ID > erg.txt &";
> exec( $command );
> ==================================
>
> und
>
> ============= mybatch ============
> Lösche SCRIPT_FILENAME
> /usr/local/bin/php script2.php <WERT DES ARGUMENTS "$JOB_ID">
> ==================================
>
> Sieht doch ganz einfach aus - ich schaff's aber nicht.
Ist auch ganz einfach:
#!/bin/sh
unset SCRIPT_FILENAME
/usr/local/bin/php script2.php "$1"
hth,
Michael
--
Um die Liste abzubestellen, schicken Sie eine Mail an:
[email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]