|
Hi David, I liked this idea as I use it for some C applications where it works very well. So I added the logic to override both STDOUT and STDERR to files before calling RUNJVA. But it didn't work! The inteactive session still scrolled up with the "Java program completed" message. I checked the job log to see if that code was getting executed and it is. Here is a code snippet: ovrdbf file(stderr) tofile(qtemp/myfile) ovrdbf file(stdout) tofile(qtemp/myfile2) The files exist. I would have thought that this would work as it is a pretty common technique in shell environments. Any thoughts? Thanks, Patrick ----- Original Message ----- From: "David Gibbs" <david@midrange.com> To: "Java Programming on and around the iSeries / AS400" <java400-l@midrange.com> Sent: Sunday, January 12, 2003 2:39 PM Subject: Re: How to supress logs > At 04:08 PM 1/12/2003, you wrote: > >When I run a Java application on the AS/400 (RUNJVA) it always shows the > >Java session in a scrolling window. When the Java application is complete > >you have to press Enter to exit the session. I would like to completely > >hide the Java session and avoid having to hit enter. Any thoughts? > > Try redirecting stdout to a file ... just use ovrdbf to a physical file. > > david > > > _______________________________________________ > This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list > To post a message email: JAVA400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo.cgi/java400-l > or email: JAVA400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/java400-l. > >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.