--
----------------
Atiq Hashmi
1. expect script doesn't understand '$1' from command line?
I have the following expect script to automate a simple ftp transfer
but it doesn't take the '$1' from the command line for some reason.
Anyone know how I could get it to do that?
--------------------------------------------------
#!/usr/bin/expect
#
#
#set prompt "(%|#|\\$) $" ;# default prompt
#catch {set prompt $env(EXPECT_PROMPT)}
eval spawn ftp ftp.eskimo.com
interact -o -nobuffer -re ftp.iglou.com:root return
send "oak\r"
interact -o -nobuffer -re assword: return
send "mypassword\r"
interact -o -nobuffer -re ftp> return
send "put"
send $1\r"
interact -o -nobuffer -re ftp> return
send "bye\r"
#interact -o -nobuffer -re $prompt return
interact
--------------------------------------------------
All I get is the follow error:
ftp>can't read "1": no such variable
while executing
"send $1..."
Thanks,
-Tony
2. java program using shared libraries
3. what's awk(1)'s equivalent of sed(1)'s `!d' flag?
4. Printer problems with BJC4000
5. ping -g 'gateway-IP' 'host-IP' DOESN'T work!
6. Is it possible to install DG/UX for Intel on non DG computer?
7. 'ping' sees route but 'telnet' doesn't??
8. cache size?
9. cvsup doesn't like tags 'ports-all' & 'doc-all'
10. Bash 'umask' builtin doesn't set 'x' permissions?
11. 'ppp-on' Works, 'ifup ppp0' Doesn't
12. 'make' fails, and I don't understand the error msg
13. I don't understand the '\'