I need to connect to a Remote FTP host via linux command line. When I try #ftp <IP address>
, it prompts for username then password.. But I would like to pass username and password in single line, so remote host should not prompt username or password..
I tried passing as #ftp <ip address> <pw.cfg>
, but no success. May I know the command how to pass username and password along with IP address to FTP remote host.. Ideally i will be using this command from a linux script.
pw.cfg
: text file contains password