Hi,
I am using Runtime.getRuntime().exec("/home/someProgram 1>someFile1
2>someFile2") in my servlet. I am attempting to redirect the stdout
to one file and stderr to another. Immediately after that I am trying
to check the error status by opening the error file using FileReader.
But the file opened is not the latest version of the file.The servlet
seems to read the version of the file present before the exec()
statement. The exec() statement does create the file as expected .
Can anyone throw any light on this behaviour ? Is there any
workaround ?
Thanks,
JESS
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html