john john - 2 years ago 172
Perl Question

Command to run Tcl (expect) script from perl script in Ubuntu

I was using the below command in windows to run the Tcl (expect) script from a Perl script.

system("C:/Tcl/bin/tclsh86 C:/Users/sysadmin/desktop/expect.tcl");

Could someone tell me its equivalent command in Ubuntu.

Answer Source

If Tcl 8.6 is installed, it's just:

system("tclsh8.6 /path/to/expect.tcl");

If it isn't installed, fix that with apt-get install tcl8.6 (which needs to be run as root, of course) or using the package manager GUI.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download