Elayne_McFaul.Wbst128@XEROX.COM (02/14/91)
I am looking for a FTAM command analogous to ftp's USER command, where I can supply the username and the password. If interested, read on for a more complete description of the problem... I have written a shell script that invokes FTAM. Two arguments must be supplied to the script: a filename and a transfer direction, for example, "%ftamscript foo.bar get". Everything works except for the password prompt. FTAM will read the username from the script but it refuses to do the same for the password. Instead, it prompts the user for keyboard entry. A copy of the script is below. I have a working version of an almost identical script that invokes ftp and issues the USER command. Please do not send me flames about the security breach. I'll admit it is a bit unconventional, but it will only be used for a few weeks while making performance measurements of the protocol---measurements that must not include the delay associated with keyboard input from a user. Thank you for any help or suggestions you can offer. BTW, I am running isode 6.0 on Unix 4.1. Elayne McFaul Xerox Corporation McFaul.Wbst128@Xerox.com ############ # Usage: ftamscript filename direction (get or put) # ftam << EOF open hostname username password set type binary set realstore unix cd directorypath $2 $1 $1 quit EOF ############
Elayne_McFaul.Wbst128@XEROX.COM (02/19/91)
I am looking for a FTAM command analogous to ftp's USER command, where I can supply the username and the password. If interested, read on for a more complete description of the problem... I have written a shell script that invokes FTAM. Two arguments must be supplied to the script: a filename and a transfer direction, for example, "%ftamscript foo.bar get". Everything works except for the password prompt. FTAM will read the username from the script but it refuses to do the same for the password. Instead, it prompts the user for keyboard entry. I can bypass the username prompt with the -a qualifier, but I find no such qualifier for the password. A copy of the script is below. I have a working version of an almost identical script that invokes ftp and issues the USER command. Please do not send me flames about the security breach. I'll admit it is a bit unconventional, but it will only be used for a few weeks while making performance measurements of the protocol---measurements that must not include the delay associated with keyboard input from a user. Thank you for any help or suggestions you can offer. BTW, I am running isode 6.0 on Unix 4.1. Elayne McFaul Xerox Corporation McFaul.Wbst128@Xerox.com ############ # Usage: ftamscript filename direction (get or put) # ftam << EOF open hostname username password set type binary set realstore unix cd directorypath $2 $1 $1 quit EOF ############