Re: get tclapp-wrapped app to display output in DOS console?
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 23 Mar 2007 17:26:19 GMT
Gerald W. Lester wrote:
Bryan Oakley wrote:We have an application wrapped with tclapp that runs on windows. It writes gunk to stdout. If I run this program from a cygwin bash shell, the output appears as expected and all is well.
I recently discovered, however, that the same executable run with the same command line from a DOS shell doesn't display any output in the DOS window. The program appears to run in the background and I have no idea where stdout is going.
Is there a way to see my output in a DOS console? I discovered that if I run my program and redirect output to a file, the output does indeed go to the file. I can also pipe the output through the DOS "more" command and see the output, but I don't want the user to be forced to use "more".
If nothing else I'll write a .bat file that redirects the output to a file, then cat (well, "type") the file. I'd rather not have to resort to that, however. At the moment I'm limiting myself to only DOS commands -- no cygwin or tclsh solutions. I'm ignorant about batch file programming on DOS so I don't really know what my options are. Anyone have any ideas?
Did you specify the tclsh type runtime or the wish type runtime -- if you specified the wish type one then the above symptoms would happen.
Wish. Yes, I know there's a distinction. What's odd is that I get the behavior I want when running from cygwin/bash, just not from a DOS window. Coming from a mostly unixy background I find DOS just terribly, terribly lame.
--
Bryan Oakley
http://www.tclscripting.com
.
- Follow-Ups:
- Re: get tclapp-wrapped app to display output in DOS console?
- From: Gerald W. Lester
- Re: get tclapp-wrapped app to display output in DOS console?
- From: Ramon Ribó
- Re: get tclapp-wrapped app to display output in DOS console?
- References:
- get tclapp-wrapped app to display output in DOS console?
- From: Bryan Oakley
- Re: get tclapp-wrapped app to display output in DOS console?
- From: Gerald W. Lester
- get tclapp-wrapped app to display output in DOS console?
- Prev by Date: Re: How to catch button invocations?
- Next by Date: Re: get tclapp-wrapped app to display output in DOS console?
- Previous by thread: Re: get tclapp-wrapped app to display output in DOS console?
- Next by thread: Re: get tclapp-wrapped app to display output in DOS console?
- Index(es):