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
Python, Lua and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Java, C, C++, Ruby, MySQL and Linux / Tomcat systems
Returning values from Expect scripts

Posted by shafa.fahad (shafa.fahad), 22 August 2006

I am trying to write an Expect script which will call another Expect script from inside which will return some value ( say, list of process running in the remote machine ) to a variable in the parent script....

Please help me out in syntax for this...

i was trying like...
set val expect script2 < considering that this line is inside script1 >

Posted by admin (Graham Ellis), 22 August 2006
Either use an environment variable, or use puts within the inner script.

This page is a thread posted to the opentalk forum at 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., 2018: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01225 708225 • FAX: 01225 793803 • EMAIL: • WEB: • SKYPE: wellho