Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

releasing a process from a file

by PerlJam (Sexton)
on Jun 12, 2002 at 17:03 UTC ( [id://173934]=perlquestion: print w/replies, xml ) Need Help??

PerlJam has asked for the wisdom of the Perl Monks concerning the following question:

Hi all;

I am using Net::Ftp to upload files to a server. In my code I am checking for failures so the computer can redial, reconnect to the ftp server and start sending again. Now when a put fails, the file it was trying to send at the time of failure cannot be sent for about 8-10 minutes on Win 2k Pro (Haven't tried on other OS's as they don't apply). When I manually (ftp command prompt) try and send the file after the program fails to send it states: "The process cannot access the file because it is being used by another process." What I am wondering is if there is a way that I can free this file from within my code. For instance when the upload fails I then release the process from the file a go on about my business. Any help is greatly appreciated.
----
Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated failures. Persistence and determination alone are omnipotent. --Calvin Coolidge (1872-1933)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://173934]
Approved by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-03-29 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found