Very Basic expect script - What am I missing?
I'm sure there is a simple answer to this question - I have a very basic expect script:
touch blah.ver (to create a test file)
check with an ls, and clearly the file is there.
If i run the above script, the pwd command runs fine, as does the ls run fine. In fact I see blah.ver in the output of the ls -
yet, the rm command does not delete the file....
if I remove the -f from the script, the rm command reports:
rm: cannot remove '*.ver' No such file or directory
However, if after the script is complete at the prompt I type
rm -f *.ver
It works as expected, and deletes the file -
What am I missing here?
as it appears, the spawn command cannot interpret '*' as glob. Not sure if it can be made to work without providing the full name.
Hope this helps.
|All times are GMT -5. The time now is 12:56 PM.|