If you look at the man pages for ftp it states that you add the account parameter to the command line followed by the password for the account. To look at the manula pages use:
man ftp
from a shell prompt.
rch1231
Veteran Poster
1,045 posts since Sep 2009
Reputation Points: 142
Solved Threads: 154
Skill Endorsements: 12
Hello,
I hate to disagree with someone on a response but ftp works fine is shell scripts. Typical ftp client programs under Unix, Linux, Solaris and NetBSD all read the ftp password from /dev/tty (or /dev/pty). The following site has a discussion of the issues involved and a script that does what you want.
http://www.stratigery.com/scripting.ftp.html
rch1231
Veteran Poster
1,045 posts since Sep 2009
Reputation Points: 142
Solved Threads: 154
Skill Endorsements: 12
Question Answered as of 1 Year Ago by
rch1231
and
cfajohnson