|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Auto FTP via a shell script? Not working so well...
Hey Folks,
I'm trying to setup a shell script to download a new price list every night. Here's what I've tried thus far: Using WGET: Code:
# !/bin/bash cd /var/www/html/imports wget ftp://user:pass@ftp.tdata.com/PRICE.ZIP Works, but retrieves the file with an appended %0D when run through via a script. If I type it in at a shell prompt, it doesn't add the %0D. Anybody happen to know why? I've also tried the following: Code:
# !/bin/bash ftp -n -i <<-here open foo.bar.com user <user> <passwd> bin get somefile.gz bye here But it never actually connects. If anyone can offer some better insight into this, that would be great. All I require it to do is download a .zip file nightly. The rest of the processing (unzipping/MySQL imports etc) I have no problem with. Thanks much, B |
|
#2
|
|||
|
|||
|
Please ignore my own stupidity.
Using a new text editor which happened to add ^M to the end of each line in my scripts. *slaps self* B |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Auto FTP via a shell script? Not working so well... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|