Operating System - OpenVMS
1828586 Members
2589 Online
109982 Solutions
New Discussion

how to call unix command in expect script?

 
emily_3
Frequent Advisor

how to call unix 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.
2 REPLIES 2
Steven Schweda
Honored Contributor

Re: how to call unix command in expect script?

You might get more and better answers in one
of the UNIX forums than you will in this VMS
forum.
emily_3
Frequent Advisor

Re: how to call unix command in expect script?

thanks, I will repost this msg at VMS forum.