Code:
#!/usr/bin/expect --
# ftp-rfc <rfc-number>
# ftp-rfc -index
# retrieves an rfc (or the index) from uunet
exp_version -exit 5.0
if {$argc!=2} {
send_user "usage: this_script <ip_address> <packeteer_ip>\n"
exit
}
send_user "$argv"
send_user "\n"
exit
Is my script. I copy-pasted most of it and I guess its finally stuck on me. This is my problem;
I used to do $1 to get the first parameter, $2 the second and so forth and so on. For this one, I am stuck on doing the same. I am trying an expect script here and not /usr/bin/sh
Any help?