I have the code
#!/usr/local/bin/php -q
<?PHP
$date = date("Ymd");
system("wget -r ftp://user:passwd@pingu.toons/dir/dir/");
system("mv pingu.toons/ $date/");
system("tar cvf $date.tar $date/");
system("gzip $date.tar");
system("rm -rf $date/");
?>
I am executing this daily as a cron but the script doesnt apear to exit afterwards...
If the script runs two days running without me confirming it has finished by pressing enter in the terminal window the tar.gz 's come out as rubbish ...
Maybe I missed some escape code ???
ideas...
thanks in advance... Carl