ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> expect
expect
[Expect] How to pass parameters to a file "test.tcl" from command line
by Suresh Sundararaman other posts by this author
Aug 16 2007 3:13PM messages near this date
view in the new Beta List Site
Re: [Expect] End-of-line conventions on Expect for Windows | Re: [Expect] [Activetcl] How to pass parameters to a file "test.tcl" fromcommand line
Hi All,
 
I have a script called "test.tcl". Here i want to pass one parameter which is a simple text 
file. Like:
 
%tclsh test.tcl somefile.txt
 
The "somefile.txt" has got 3 values, one is IP address, another one is mode1 and last one is
 mode2.
 
How can i write the piece of code to do this in "test.tcl" ?
 
Can anyone guide me across thru it ?
 
Rgds,
s.suresh
 
 
_________________________________________________________________
Want to look great? Get expert opinion on beauty and skin care.
http://content.msn.co.in/Lifestyle/AskExpert/Default01.htm
Thread:
Suresh Sundararaman
Tylik Dmitry-R49752

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved