Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
This week, we're updating our course layouts and descriptions. Presentation and materials always gently change over time, but just occasionally there's a need to make a step change to clear out some of the old and roll in the new. That's now happening - but over a long and complex site it's not instant and you'll see sections of the site changing up to and including 19th September.

See also [here] for status update
 
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.

You can Add a comment or ranking to this page

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