1833995 Members
2645 Online
110063 Solutions
New Discussion

Re: Expect

 
SOLVED
Go to solution
Shawn Hamby
Occasional Contributor

Expect


Trying to install Expect on HP-UX 10.20.

Have the expect port, as well as the tcl port, but I can not find a port for Tk8.0p2 which is needed for expect. Does anyone have the necessary libraries I need for 10.20?

6 REPLIES 6
John Bolene
Honored Contributor

Re: Expect

I installed expect 5.33, tcl 8.2.1 and tk 8.2.1 on UX 11.0

I don't think the products support 10.20

That reason made me upgrade to 11.0
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Sridhar Bhaskarla
Honored Contributor

Re: Expect

Hi,

Try it from here

http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.37/

You can click on Dependencies to get to TCL/TK. That should be enough for you to run expect.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Shawn Hamby
Occasional Contributor

Re: Expect


According to that site, which is where I originally got expect and tcl:

"Requires Tcl 8.0p2, which is available in this category and can also use tk 8.0p2."

I found tcl 8.0p2, but I can not find tk 8.0p2, they don't have it on the site. I tried installing the latest tk, and the expect install fails because of a lack of a dependancy.

Do you know where I can get the depot for tk8.0p2?
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Expect

Hi,

I think the depot was not created right as well tcltk not compiled to create libtcl.sl that expect looks for. You can go ahead and download both the depots. Install tcltk depot first. Then install expect. Make sure you make "dependencies off" in the options menu while installing expect.

Once it is done, create a link to /opt/expect/lib to /opt/tcl??/tcl/lib/libtcl??.sl as libtcl.sl


#ln -s /opt/tcl??/tcl/lib/libtcl??.sl /opt/expect/lib/libtcl.sl

Replace ?? with the version of tcl that gets installed.


Then try running expect.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Shawn Hamby
Occasional Contributor

Re: Expect

Thank you, that worked great. I now have expect working on 10.20.

Quick question, from within an Expect script, how do I hide the standard output? I noticed it displays the commands in the script, and I would like to hide that output. Can I redirect that output to null?
Chris Wilshaw
Honored Contributor

Re: Expect

Yes, you should be able to redirect standard output to /dev/null (or a log file) from the command line

eg:

my_script.exp > /dev/null