Re: Getting the return value of a command line program
- From: "Rufus V. Smith" <nospam@xxxxxxxxxx>
- Date: Wed, 27 Sep 2006 12:17:10 -0400
"Mark Okamura" <mark.okamura@xxxxxxxx> wrote in message
news:1152811740.142985.67690@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thank you gentlemen. I did not realize that "catching" close would
return the program's return value. Tcl makes these tasks easy (with
the group's help)!
Mark
Yes, be glad.
We were doing scripting in awk, and the only way
we could get the return status of an executed program
was to execute a batch file, which in turn executed the
program, then echoed the %errorlevel% to the output, which
was then reparsed by the calling function, which grabbed
the last line of output (the echoed errorlevel).
.
- Prev by Date: Re: a new language? was (Re: is tcl/tk dying out?!)
- Next by Date: Re: tcl tutorial
- Previous by thread: Expect script on Russian Windows doesn't interpret correctly
- Next by thread: possible to control activesync via tcom?
- Index(es):
Relevant Pages
|