|
|||||||
|
|
![]() |
|
|
|
|
||
|
Redirecting Java's Standard Output, Take 2 Hey, David: Regarding your Redirecting Java's Standard Output article in the July 16, 2003 issue of Midrange Guru. As a coincidence, I was looking into this question that day, so I read your article with special interest. Just after I read your article, I found out about another method of redirecting stdout and stderr: 1. In the home directory as listed in the user profile HOMEDIR parameter, or directory /QIBM/UserData/Java400, add a file called SystemDefault.properties. In that file, add two lines. For example: os400.stdout=file:/home/bmorris/stdout.txt os400.stderr=file:/home/bmorris/stderr.txt 2. Change environment variable QIBM_USR_DESCRIPTOR_STDIO ADDENVVAR ENVVAR(QIBM_USE_DESCRIPTOR_STDIO) VALUE(Y) Now, stdout and stderr output will go to those files. See the following links for more information: http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzaha/sysprop2.htm http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzaha/sdpropf.htm --Barbara Morris [Note: Barbara Morris is a member of IBM's RPG compiler developer team.]
|
Editors
Contact the Editors |
| Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved. |