This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 3 matches

by earnstaf
Thu Jul 19, 2007 6:46 pm
Forum: Scripting Help
Topic: Case Structure Equivalent?
Replies: 6
Views: 3983

Well, if you're coding for eggdrop, you'll have to use several procs and bindings, each triggering and handling each step: ie, one proc to ask the user for input, and another for handling the response. I'm not real sure what eggdrop is... sorry! Your guidance in tcl/expect scripting was helpful tho...
by earnstaf
Thu Jul 19, 2007 6:21 pm
Forum: Scripting Help
Topic: Case Structure Equivalent?
Replies: 6
Views: 3983

Roughly something like this: switch $file { 1 {command 1} 2 {command 2} 3 - 4 {command for 3 or 4} default {any other command} } Also check the manual for switch for more info/hints... Thanks nml. That looks like exactly what I need. How do I prompt the user to enter the 1, 2 or 3? Is it something ...
by earnstaf
Thu Jul 19, 2007 5:26 pm
Forum: Scripting Help
Topic: Case Structure Equivalent?
Replies: 6
Views: 3983

Case Structure Equivalent?

Hi all, I'm very new to tcl/expect and I'm looking for a push in the right direction on this issue. I'm writing an expect script to log into a router and push a file that varies. I was thinking of using something like a case structure in shell scripting: echo -n "What file would you like to pus...