From: Gwyneth C . Morrison (xegtmv@flmultimedia.com)
Date: Thu Jun 07 2001 - 23:19:46 EEST
On 2001.06.07 15:50:00 -0400 Albert Duane Lawson wrote:
> Thanks for reading....
>
>
> I am setting up an ftp script using expect. I've ran into a problem
> sending
> the password.
>
> Here's the part of the script that expect is having trouble with.....
>
> spawn ftp -nv XX.XX.XX.XX
> expect ftp>
> send "user wb7awl\r"
> expect Password:
> send "$xxxxxx$\r"
> expect ftp>
>
> The actual password begins and ends with $ and expect is trying to read
> that
> as a variable. Is there a way to make expect not read that as varibale
> and
> send the actual string....???
>
> Any help would be appreciated.....
>
> 73's
>
> Albert/WB7AWL
>
Hi Albert,
If you are just trying to ftp in a script I found this worked for
me.
/usr/bin/ncftpput -f login.cfg <directory to put into> <file to send>
Login.cfg contains:
host <host to send to>
user <username>
pass <password>
If you can't find ncftpput let me know, I will hunt it down for
you.
It was on my system.
Good Luck
73 Gwyn
-- It said it required windows95 or better, so I installed Gwynux.- To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to mzh@unixsol.org
This archive was generated by hypermail 2b30 : Thu Jun 07 2001 - 23:13:02 EEST