R
Rich Pasco
Until today, a command file invoked FTP like this:
ftp <upload.ftp
where file upload.ftp contained
open mydomain.org
myname
cd mydir
put localfile.ext remotefile.ext
quit
In this case "myname" answered the username prompt, but the
password prompt still came through to the screen for keyboard
entry, as desired.
Today I read that a better syntax is
ftp -n -s:upload.ftp
However, using this syntax I can't figure out a way to get FTP
to wait for me to type the password. It works OK if upload.ftp
contains
user myname mypassword
but I really don't want to hard-code my password anywhere.
Any ideas?
- Rich
ftp <upload.ftp
where file upload.ftp contained
open mydomain.org
myname
cd mydir
put localfile.ext remotefile.ext
quit
In this case "myname" answered the username prompt, but the
password prompt still came through to the screen for keyboard
entry, as desired.
Today I read that a better syntax is
ftp -n -s:upload.ftp
However, using this syntax I can't figure out a way to get FTP
to wait for me to type the password. It works OK if upload.ftp
contains
user myname mypassword
but I really don't want to hard-code my password anywhere.
Any ideas?
- Rich