Guest_imported
New member
- Jan 1, 1970
- 0
Hi there!
I am working on a script that should list all the expectscript is a particular directory to the user, and then chose which one he/she wants to execute, and log the results etc in a log.
But, I have a problem with the exec command. The thing is that when I use the syntax "send user "[exec ls $dir$application*.exp]\n"" (or in tclsh " exec ls /home/eandost/automation/testcases/*" I get an error like "/home/eandost/automation/testcases/tss*.exp: No such file or directory". Is this a bug in the exec procedure, or have I just made an error somewhere? In that case, how do I make exec evaluate "*" as a regular expression instead of just the character "*"?
Or is there another way of doing this that works better?
thank you very much for your help
Yours, anders osterling
I am working on a script that should list all the expectscript is a particular directory to the user, and then chose which one he/she wants to execute, and log the results etc in a log.
But, I have a problem with the exec command. The thing is that when I use the syntax "send user "[exec ls $dir$application*.exp]\n"" (or in tclsh " exec ls /home/eandost/automation/testcases/*" I get an error like "/home/eandost/automation/testcases/tss*.exp: No such file or directory". Is this a bug in the exec procedure, or have I just made an error somewhere? In that case, how do I make exec evaluate "*" as a regular expression instead of just the character "*"?
Or is there another way of doing this that works better?
thank you very much for your help
Yours, anders osterling