![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pulling a list of files from FTP site in a shell script | spatra | Shell Programming and Scripting | 0 | 08-28-2008 07:03 AM |
| Download files using perl | mirusnet | UNIX for Dummies Questions & Answers | 2 | 12-19-2007 10:04 PM |
| how to browse a web site using script | kirantalla | AIX | 4 | 10-15-2007 03:56 AM |
| download files from direct links tool? | umen | UNIX for Dummies Questions & Answers | 2 | 07-04-2006 10:00 AM |
| shellscript for download files | ram2s2001 | Shell Programming and Scripting | 3 | 02-07-2006 08:16 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
script for download files from ftp site
I'm new to scripting. I'm trying to write a script to download files from ftp site, the following is the script and the message i get after running the script. no files were downloaded
![]() Thanks advance! script: #!/usr/bin/ksh DAY=`date --date="-1 days" +%y%m%d` ftp -v -n "ftp.address" << cmd user "user name" "pass word" cd /directory prompt bin mget $DAY* quit cmd Message after running the script: Connected to lnxftp.mer.com. 220 Welcome to the Mer FTP Service. 530 Please login with USER and PASS. 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type 331 Please specify the password. 230 Login successful. 250 Directory successfully changed. Interactive mode off. 200 Switching to Binary mode. 221 Goodbye. |
|
||||
|
the following script works yesterday, but today does not work any more, what's wrong with it. after run it, it give me the same message as i posted before. please advise. thanks
#!/usr/bin/ksh DAY=`date --date="-1 days" +%y%m%d` ftp -v -n "fftp.address" << cmd quote user username quote pass password cd /directory prompt bin mget $DAY* quit cmd |
|
||||
|
Thanks vidyadhar85, I can manually log on the ftp with the same user and pass. still don't know why it worked only yesterday
![]() Thanks |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|