From: Steve Stuart (rcae.doec@greentech.no)
Date: Tue Jun 12 2001 - 07:28:40 EEST
Albert,
Did why don't you try to delimit the dollar signs, '$',
with a backslash...
send "\$password\$\r"
73 de Steve
·¸¸·´¯`·¸¸·´¯`·¸¸·´¯`·¸¸·´¯`·¸¸·´¯`·¸¸·
plqrgz@eprintdirect.com
http://www.w8an.net
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
>
-- - To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to ard@warwick.ac.uk
This archive was generated by hypermail 2b30 : Tue Jun 12 2001 - 07:31:46 EEST