3 Replies Latest reply: Feb 11, 2011 12:25 PM by BDAqua
Ramon Pose Level 1 Level 1 (0 points)
i picked up this nice shellscript and modified it a bit.



*user_Name="censored" # User Name.*
*pass_Word="censored" # Password*

*file01="sitemap.xml" # File to download.*


*tDirectory="../public_html/" # Directory to upload to.*

*bURL="82.195.224.120" # FTP server.*

*tDate=$(date +%Y%m%d)*

*mkdir $HOME/Desktop/$tDate/*

*# Download file01.*
*curl ftp://$user_Name:$pass_Word@$bURL/$file01 >> $HOME/Desktop/$tDate/$file01*

but my problem is that it doesn't can connect to the server i think because the folder at least it generates....

Message was edited by: Ramon Pose

Macbook Pro, Mac OS X (10.6.6)