Subject: Hi help req. in Expect script.......
From: Glenn Jackman
Date: 12/3/2007 4:55:43 PM
At 2007-12-03 10:15AM, "bhavik bavishi" wrote:
> First of all thanx a lot for helping me out in my previous query......
>
> How to write function in Expect ?? like in unix.....
>
> bcoz i wrote 3 times telnet script in my expect script , so i want to
> call function just 3 times with server name.... n reduce the size of
> script !!!!
>
> Thanx in advance..........
That's a big question. I first recommendation is to learn Tcl (because
Expect is just an extension of Tcl) so that you can do it yourself.
Here's a good place to start:
http://www.msen.com/~clif/TclTutor.html
If you post your script we may make some suggestions.
--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry
Subject: Hi help req. in Expect script.......
From: claird@lairds.us (Cameron Laird)
Date: 12/3/2007 4:45:57 PM
In article <f7f3a299-3e19-40fe-87fb-0c34423e6a73@s12g2000prg.googlegroups.com>,
bhavik bavishi <bhavik.bavishi@gmail.com> wrote:
>First of all thanx a lot for helping me out in my previous query......
>
>How to write function in Expect ?? like in unix.....
>
>bcoz i wrote 3 times telnet script in my expect script , so i want to
>call function just 3 times with server name.... n reduce the size of
>script !!!!
>
>Thanx in advance..........
<URL: http://wiki.tcl.tk/463 >
<URL: http://npt.cc.rsu.ru/user/wanderer/ODP/Procedures_in_Tcl.html >
However, look for "The most common problem this causes ..." in <URL:
http://www.tcl.tk/man/expect5.31/expect.1.html >.
|