HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

how to call hpux command in expect script?

 
emily_3
Frequent Advisor

how to call hpux command in expect script?

hello,

I want to run unix command in expect script. As known I need to use "exec" to call, so I write the script as following, it tried to grep string aaaa in file /tmp/test. but it always failed. Can you help on this?
exec grep 'aaaa' /tmp/test
My question is that whether "exec" can call for any unix command? Can I relove this without using unix command? Thanks.
1 REPLY
Steven Schweda
Honored Contributor

Re: how to call hpux command in expect script?