Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

still getting errors while executing with exec in tcl/tk

Status
Not open for further replies.

csreedhar

Programmer
Jul 31, 2003
8
IN
Thanks Ulis for your replay to my question.

I used your below suggetion.

catch {exec [file nativename c:/cssplit.exe]} msg
puts "exec returned: \"$msg\""

But I am getting data from the file and aswell as "child process exited abnormally"

Out put I am getting like :

Tool version 3.8.0 child process exited abnormally.

where as Tool version 3.8.0 is returning from cssplit.exe.

Could you kindly suggest me why this child process exited abnormally message is coming.

Once again thanks for your replay.




 
If you are using, as I suspect, an old version of Tcl before 8.0, I can't help you. And my experiment with exec is very little.

I hope than somebody else will give you some hint.

ulis
 
I don't know if this is the issue but it seems dangerous to me to have: puts "exec returned....". Tcl could be trying to execute "returned..." I don't know. Try changing that to something else.

Bob Rashkin
rrashkin@csc.com
 
Bong:
No command evaluation goes on there. The language would
be completely unusable if command phrases like "exec" were
as volatile as all that ;)


csreedhar:
Sounds like whatever is going on in your C wrapper
is the problem. The called program is not able to
exit cleanly when the c wrapper (I assume) exits.

Without seeing the source we can't help you anymore.
The exec() family call for tcl is standard.
There is nothing really special about it besides it's
tie to the tcl interpreter.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top