ikegami and ww, thanks for the responses. There is no particularly urgent reason to direct the Java app's output to a command window. The reason I wanted to do it that way is because, before I wrote the Perl script, that is how I have been working with the application. That is, for the most part, I have access to the server machine. To start my Java app, I double-click the batch file. This launches a command window where I can view output and kill the app by simply closing the window. (Your guess that the console output is disposable is correct. Anything of worth is logged using logback.) I've developed the Perl script for the case where I only have remote access to the server machine. In that case, it would be nice if the Java app launched as it normally does, within a command window. That way, if someone else launches the app remotely while I'm at the server machine, I can see the output immediately and also easily kill the Java app if need be.
From the looks of it, this is not an easy problem to solve and it sounds like I'm better off imagining a different setup, e.g. the console output goes to a file and I kill the server with either a batch file or simply by accessing the Task Manager. By the way, can't I just as easily direct the console output to a file like this?
system('run.bat > console.log');
Thanks,
David
In reply to Re^2: CGI script: How to run batch file in command window?
by sirstruck
in thread CGI script: How to run batch file in command window?
by sirstruck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |