Operating System - OpenVMS
1753317 Members
5289 Online
108792 Solutions
New Discussion

Re: 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 1
Steven Schweda
Honored Contributor

Re: how to call hpux command in expect script?