Can anyone help me out possibly with some examples of a good working
way to accomplish this?
Thanks in advance!
Could be a number of things but without some code it is hard to tell
what it is for sure. Are you
getting as the return to an exec call the "command not found" message
or does this show up in the terminal when you try to run your expect
script? If the latter then check your PATH environment variable to
make sure it includes the directory for cat and grep and whatever else
you may be calling; if the former, then make sure the expect
interpreter is reachable via your PATH. Exec may act like the system
call on Unix and may invoke sh to run the commands given to it. Check
to make sure that sh is available also via the path. If all else fails
post some code to get better response.
Carl
It's easy to speculate that you have written
set contents [exec "cat $myfile"]
rather than
set contents [exec cat $myfile]