Re: [PHP] shell_exec problem with bsdtar

2009-05-14 Thread Lester Caine

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



[PHP] shell_exec problem with bsdtar

2009-05-13 Thread Lester Caine
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?

--
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



Re: [PHP] shell_exec problem

2002-11-15 Thread Jason Wong
On Friday 15 November 2002 03:02, Coert Metz wrote:
 Hi everybody

 I have some few problems with the shell_exec command.
 I want to send a fax with hylafax using the sendfax program in linux.
 When I try to do shell_exec (sendfax -n -d faxnumber faxfile) it will

I have a little app which allows someone to enter a number and upload a PDF 
file which gets faxed using sendfax. Works fine here. I'm basically doing the 
same as you are:

  shell_exec(sendfax $OPTIONS -d $DESTINATION $FILE);

 not work I can see in my httpd file that linux only gets the command
 'sendfax' and not the parameters '-n -d .'.

What httpd file? You mean the log? What exactly do you see? Copy-paste the 
line(s).

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
MMM-MM!!  So THIS is BIO-NEBULATION! 
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] shell_exec problem

2002-11-14 Thread Coert Metz
Hi everybody

I have some few problems with the shell_exec command.
I want to send a fax with hylafax using the sendfax program in linux.
When I try to do shell_exec (sendfax -n -d faxnumber faxfile) it will 
not work I can see in my httpd file that linux only gets the command 
'sendfax' and not the parameters '-n -d .'.

Can anybody help me?

Thanks in advance

Coert Metz


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php