Hi
Thanks for the reply.
I am very sure that the file handlers are closed. I am closing the handlers at all cases. I have checked that multiple times.
(e.g)
open(STATUSLOG, ">>"$StatusFile );
print(STATUSLOG "COMPLETED" );
close(STATUSLOG );
Java webservice is invoking the perl scripts. It also does some operations with that file. I doubt whether java webservice is locking...
User Profile
Collapse
-
Hi Paul
I am using windows 2000. Do you suggest me any utility in Windows to find out which process has locked my file. I am facing the File locking problem in a production server. So it will be better if there are things already available in the OS (Not need of downloading any extra thing)
Thanks for your help.
Regards
Finny...Leave a comment:
-
I define abruptly as like this . " The code had opened the handler. It is processing the second line of code. The console window is closed at that moment. So at that time what will happen to the third line which closes the file handler. Will it close the handler or ...? "
I believe i have explained clearly. If you still need more explanation pls get back to me.
Thanks. Looking forward for your help....Leave a comment:
-
Hi
Thanks for the reply. I will try it out and get back to you....Leave a comment:
-
Closing File handlers when script stops Abruptly
Hi
I have a perl script which deals with files like this. My aim is to close the handlers safely eventhough the perl script execution is stopped abruptly.
How can i do this.
Pls give me a code sample. Thanks
[code=perl]
open(STATUSLOG, ">>"$StatusFile );
print(STATUSLOG "COMPLETED" );
close(STATUSLOG );
[/code] -
File is getting Locked. Pls help
Hi
This is my first post to this forum.
I am struck up with a problem.
We have a perl script which deals with creation/deletion of files. This perl script is trigerred through a java webservice. But at times the files are getting locked by a process. We are not able to delete the files. the error message is " Cannot accoss the file <file name> because it is used by another process"
...
No activity results to display
Show More
Leave a comment: