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?