User Profile

Collapse

Profile Sidebar

Collapse
mailtofinny
mailtofinny
Last Activity: Feb 26 '08, 09:38 AM
Joined: Jan 17 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mailtofinny
    replied to File is getting Locked. Pls help
    in Perl
    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...
    See more | Go to post

    Leave a comment:


  • mailtofinny
    replied to File is getting Locked. Pls help
    in Perl
    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...
    See more | Go to post

    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....
    See more | Go to post

    Leave a comment:


  • mailtofinny
    replied to File is getting Locked. Pls help
    in Perl
    Hi
    Thanks for the reply. I will try it out and get back to you....
    See more | Go to post

    Leave a comment:


  • mailtofinny
    started a topic Closing File handlers when script stops Abruptly
    in Perl

    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]
    See more | Go to post
    Last edited by numberwhun; Jan 17 '08, 01:38 PM. Reason: add code tags

  • mailtofinny
    started a topic File is getting Locked. Pls help
    in Perl

    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"

    ...
    See more | Go to post
No activity results to display
Show More
Working...