1b115 Calling proc from command line - The Tcl programming language
Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Calling proc from command line

Posted by priyadharshini (priyadharshini), 6 June 2008
Hi,

         I've a tcl file with several proc's. I need to call a proc from command line. Is it possible?

Thank you,

Posted by admin (Graham Ellis), 7 June 2008
I don't think that Tclsh has such an option - but you can use the -c option to expect to do this.  Your alternatives are to write a single line file to run the proc, or to embed the call in a C program.



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2013: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho
0