At 09:27 PM 3/4/00 +0000, you wrote:
>I need to retrieve a file (via cron) which resides on an FTP server
>requiring a username and password.
>In Netscape entering a URL of
>">pass@ftp.ftpsite.com/dir/subdir/test.txt">ftp://user:">pass@ftp.ftpsite.com/dir/subdir/test.txt
Brian;
I am including a little script that I was helped with hear a year and a
half ago. You can modify as you like it.
This script will execute the ftp commands down to the EOF.
#!/bin/sh
ftp -n ftp.ftpsite.com <<EOF
user yourname password yourpassword
cd /dir/subdir
binary (or ascii)
hash
prompt
get test.txt
EOF
Make sure you make the script executable. Run a few tests of it manually,
then try running it under cron. This works for me on a daily basis.
>works nicely *but* how can I accomplish the same thing from the command
>line? And yes, I've read the 'man' but am still clueless...
This should give you a few hints. Let me know if you need additional help.
Regards - Bob Kruger
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.