|
||||||||
On Thu, 21 Oct 2004 17:17:56 +0100 monideth dot pen at unitednetworks dot co dot uk wrote: > I am using the following command: > > wget --post-data 'Submit=Download' > https://<username>:<password>@<host_ip>/diag_backup.php -O config.xml > Thanks Frederick, It works fine me exactly the same way you wrote. (Debian / wget 1.9.x) I have just copied over what you wrote and made some "version checking". thanks for it ############################# dir1="/var/backups/" file1=`ls $dir1*_config.xml` file2="m0n0_XXX_"`date +%Y%m%d%H%M`_config.xml wget --post-data 'Submit=Download' https://username:secret@111.222.333.444/diag_backup.php -O $dir1$file2 cd $dir1 cmp $file1 $file2 if [ "$?" = "0" ]; then rm $file2 else rm $file1 fi ############################# regards Imre Ispanovits |