john john - 5 months ago 23
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.


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.