php-general | 2001092
Date: 09/30/01
- Next message: Kath: "Re: [PHP] Running a Shell Script in PHP HELP!"
- Previous message: Richard Heyes: "[PHP] socket_get_status()"
- Next in thread: Kath: "Re: [PHP] Running a Shell Script in PHP HELP!"
- Reply: Kath: "Re: [PHP] Running a Shell Script in PHP HELP!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have a shell script that I am executing like this $files = `shellscript`;
but if I do an if ($files) it doesn't read $files as existing. The contents
of the shell script is a smbclient line that copies a bunch of DBF files from
another machine. Anyone have any idea? Below is a little snipit of my code
$files = `updatemp`;
if ($files) {
print "$files<br>";
print "I am god";
} else {
print "$files";
print "It's ok you'll get it working. =)";
}
The contents of the updatemp file is as follows
smbclient //machine/c -I 192.168.0.4 -U armando%secret -D a1 -c 'lcd /tmp/dbf
; prompt ; mget *.dbf ; quit'
Thanks in advance,
Armando
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Kath: "Re: [PHP] Running a Shell Script in PHP HELP!"
- Previous message: Richard Heyes: "[PHP] socket_get_status()"
- Next in thread: Kath: "Re: [PHP] Running a Shell Script in PHP HELP!"
- Reply: Kath: "Re: [PHP] Running a Shell Script in PHP HELP!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

