Training, Open Source computer languages

This is page http://www.wellho.net/forum/The-Tcl- ... guage/Error-child-process-exited-abnormally.html

Our email: info@wellho.net • Phone: 01144 1225 708225

 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Error ! child process exited abnormally.

Posted by amit (amit), 16 March 2005
I am new to TCL/TK. I installed Active State Active Tcl 8.4.9.0 from Net and starts learning Tcl & Tk. I have some problems with "exec".  I am giving my simple tcl program to execute mycompare.exe with two input files as data .out and data.in.

PROGRAM:

#!/D:/work_prog/asd/klp
proc do_well { } {
set res [ exec D:/work_prog/asd/klp/mycompare.exe D:/work_prog/asd/klp/data.out D:/work_prog/asd/klp/data.ref ]
#puts stdout $res
}

proc doo { } {
do_well  
}

doo
 

I saved it as compare.tcl at D:/work_prog/asd/klp so when i am double clicking on "compare.tcl" or (running this code on tkcon 2.4 Main by writing command as
(bin) 3 % source D:/work_prog/asd/klp/compare.tcl ) then i am getting an error as given below:
   
   The files are the sameThe no of lines are 507000
   child process exited abnormally
   while executing
   "exec D:/work_prog/asd/klp/mycompare.exe D:/work_prog/asd/klp/data.out D:/work_prog/asd/klp/data.ref "
   (procedure "do_well" line 2)
   invoked from within
   "do_well  "
   (procedure "doo" line 2)
   invoked from within
   "doo"
   (file "D:/work_prog/asd/klp/pract.tcl" line 11)
   invoked from within
   "source D:/work_prog/asd/klp/pract.tcl"
   ("uplevel" body line 1)
   invoked from within
   "uplevel #0 {source D:/work_prog/asd/klp/pract.tcl}"

So , Please tell me how can i remove this error. Also tell me some details regarding such type of errors an how can i avoid them.

ALSO I WANT TO LEARN MORE REGARDING INVOCKING SUBPROCESS. I am trying to build and run to .c program by invocking Microsoft Visual C++ . So which
corrective steps should i take to perform this task. Please give me details with some Example and preferable net links so that, I resolve my problems successfully.

Amit


Posted by admin (Graham Ellis), 17 March 2005
My first thought would be to catch the error - there's a short example of this at
http://www.wellho.net/resources/ex.php4?item=t214/err2

Aside.  I will not be giving as much time as I usually do to answering this question.   It's the third time that I've come across it in 24 hours, and that's without searching for it ... so goodness knows how many other times it's been asked; there seems very little point in me "spinning wheels" to help when others are probably doing so as well - I've better things to do that provide duplicate answers.

It is highly unusual for me to comment like this on the forum - I prefer to do so in a private message.  In this case, a private message that asked how widely the question had been posted, and suggested that the poster "lay off" for a few days while responses came in, just resulted in a further copy being posted within 12 hours.

In summary - usually delighted to help, but this is a free service and, please, please, please, don't waste replyer's time by asking a question that you'll probably have had answered elsewhere by the time I get to it.




This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho