It's been a while, but I think you have the routine slightly wrong.
 
If I remember right, you need something like this:
 
ftp 111.222.111.222 < ftp_info.txt
 
Where ftp_info.txt contains the ftp commands you want to run, such as the "user" and "pass" commands.
 
I'd suggest researching this a bit more, and not relying on my (sometimes faulty) memory.  But, I hope it helps.
 
Shawn
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Jim Akeson
Sent: Wednesday, March 17, 2004 9:01 AM
To: [EMAIL PROTECTED]
Subject: [clug-talk] FTP Script Question.

Hello, I am trying to set up a FTP script and I am having nothing but problems. here is the script:
Filename: my_script
File Contains:
 
ftp -n [IP HIDDEN]
user username
pass password
 
This is what it spits back at me:
 
[[EMAIL PROTECTED] /TempForBackup]# sh my_script
.onnected to [IP HIDDEN]
220 FlOYD FTP server (Version wu-2.6.1-16) ready.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
ftp>
 
If anyone has a better way to run a script to FTP a file please let me know. Thank you.
_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to