kudithipudi
IS-IT--Management
Hello Guys,
During the process of running my scripts/programs I usually open a bunch of file handles to write or read data to. I usually open the filehandle for log files at the starting of the program and close them at the end. Sometimes the script may error out or die unexpectadly. As a result all the logs I have written prior to the crash are lost. Is there any way to commit the data sent to the file handle to be explicitly written to disk rather than wait till the close(FILEHANDLE) is issued?
Thanks for the help..
- V.
During the process of running my scripts/programs I usually open a bunch of file handles to write or read data to. I usually open the filehandle for log files at the starting of the program and close them at the end. Sometimes the script may error out or die unexpectadly. As a result all the logs I have written prior to the crash are lost. Is there any way to commit the data sent to the file handle to be explicitly written to disk rather than wait till the close(FILEHANDLE) is issued?
Thanks for the help..
- V.