Lester Caine wrote:
I'm trying to emulate Linux facilities on the windows servers, and have
found bsdtar can be renamed tar.exe so that it will work the same as a
shell_exec( "tar" ) call in Linux.
The full paths are used to the files and the command line returns the
extracted file name when run at a command prompt, and similar commands
for unzip and unrar work fine, later in the check list, but using the
'tar' and also 'bsdtar' command simply returns NULL, and the extracted
file is not created.
Any ideas what I've got wrong?
OK - had a sleep on it, and started again fresh.
The bottom line is that WHAT shell_exec returns is rather variable.
There is a comment about returning windows errors on the manual page,
but in fact 2> may not JUST contain errors, it also has the normal
return from some programs. So 2> 'output' may be generally required to
find out what has been returned, if the shell_exec return is NULL.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php