RE: [PHP] executing a shell file

From: Date: Tue, 08 Aug 2000 17:34:17 +0000
Subject: RE: [PHP] executing a shell file
Groups: php.general 
Request: Send a blank email to php-general+get-10743@lists.php.net to get a copy of this message
You could either rewrite the code below in PHP (the preferred method), or save it as an external file, chmod +x it, and then use exec(), system(), or passthru() to run the external shell script. --Bruce Bruce Christensen Intel Corporation brucex.r.christensen@intel.com -----Original Message----- From: Horizon [mailto:hit@eth.net] Sent: Tuesday, August 08, 2000 9:38 AM To: [PHP] Subject: [PHP] executing a shell file i am having a shell file which i want to execute in my php file. here is my code. #!/bin/bash #IF loop initial=0 for i in find -name "Guest*" | cut -c 8-12 do if [ $i -ge $initial ] then initial=echo $i actual0=echo $initial fi done actual=expr $actual0 + 1 mkdir Guest$actual help me. vijayakumar.b

« previous php.general (#10743) next »