Hello Todd,
 verbose was just in there so I could see what was going on at the
 command line it is not in the php script becase there is no need for
 it

Sunday, September 01, 2002, 8:41:42 PM, you wrote:


TP> Only just noticed this when I read my post...

TP> Why do you want to use verbose?

TP> If you want to capture the output for some reason, use this....

TP> exec("cd /change/to/dir; tar cvf /place/for/backup.tar files",
TP> $capturedoutput);

TP> otherwise drop the v (or --verbose) which will chew less resources.

TP> Todd.

>> -----Original Message-----
>> From: Todd Pasley [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, 2 September 2002 1:32 PM
>> To: Richard Kurth; php-general
>> Subject: RE: [PHP] using shell_exec
>>
>>
>> Use ; instead of |
>>
>> e.g.
>>
>> shell_exec("cd /change/to/dir; tar cvf /place/for/backup.tar files");
>>
>> Todd.
>>
>>
>> > -----Original Message-----
>> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> > Sent: Monday, 2 September 2002 9:40 AM
>> > To: php-general
>> > Subject: [PHP] using shell_exec
>> >
>> >
>> >
>> > Can somebody tell me way this will work at the command line but will
>> > not work using PHP I also tried exec and system. from the command line
>> > it adds all the files and directors. But using the script below from
>> > PHP it creates an empty archive.
>> >
>> > shell_exec("cd /home/sites/www.directphp.net/ | tar --create --verbose
>> > --file=/home/sites/www.directphp.net/sitebackup/backup.192002.tar web");
>> >
>> >
>> >
>> > --
>> > Best regards,
>> >  rdkurth                          mailto:[EMAIL PROTECTED]
>> >
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, visit: http://www.php.net/unsub.php
>> >
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>





-- 
Best regards,
 rdkurth                            mailto:[EMAIL PROTECTED]


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

Reply via email to