ftp¿¡¼­ Cannot open or remove a file containing a running program"
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2009-02-23 17:57:34
 

target=_blank>http://unix.derkeiler.com/Newsgroups/comp.unix.aix/2003-05/0290.html


1.
/usr/sbin/slibclean ¸í·ÉÀ¸·Î ÇØ°á

to remove any currently unused modules in kernel and library memory and retry copying the file to it's destination

2.
Question about "Cannot open or remove a file containing a running program"
From: Nicholas Dronen (ndronen_at_io.frii.com)
Date: 05/10/03

Next message: Ulrich Plate: "Clone a disk to tape"
Previous message: Nicholas Dronen: "Re: # of file descriptor used in process"
In reply to: music4: "Question about "Cannot open or remove a file containing a running program""
Next in thread: music4: "Re: Question about "Cannot open or remove a file containing a running program""
Reply: music4: "Re: Question about "Cannot open or remove a file containing a running program""
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]

----------------------------------------------------------------------
----------

Date: 10 May 2003 13:50:12 GMT

music4 <music4@163.net> wrote:
m> Greetings,


m> I don't know AIX before, but today I encounter a problem about AIX.


m> I developer a auto-ftp client program, it sends files to ftp servre
m> automatically. My application is windows based. My customer has an AIX host
m> runing ftp server. After my application ran 8 days at customer's site, an
m> error was reported this morning. I checked log file, the error is:


m> When my application was sending a file, due to network problem, ftp session
m> was broken. After about 2 minutes, my application automatically reconnected
m> to the ftp server, and started resending the file, but the ftp server
m> responded error message:


m> 200 Type set to I.
m> 200 PORT command successful.
m> 450 /xlt/thefile: Cannot open or remove a file containing a running program.


m> My question is that how the error was generated? Is it safe to resend the
m> file after several minutes.


The error is caused by the fact that an instance of /xlt/thefile
is running. You should be able to see it with ps aux. Since the
operating system uses demand paging, not all of the pages of a program
are necessarily mapped into memory when it starts. This means that
the process may request more pages of that program to be mapped into
memory at any time. So the operating system doesn't let you remove
the file.


Either that or the ftp daemon still has the file open for writing.


Rename the file and resend it with your ftp client.


Regards,


Nicholas


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦