It is currently Thu, 24 Jul 2014 12:23:31 GMT



 
Author Message
 ftp 'text file busy'

For the past week I've been having a problem with an ftp job.
The job ftps to a host and does a get of a file.  The message
returned is:

450 DlyStats: Text file busy.

The interesting thing is if I logon to the other site, ftp,
and do a put it works fine.

Does anyone have any clues?

The site that the ftp jobs run on is HPUX 10.00.

The other site is AIX 4.1.
--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
  Don Sharp - DBA Advisor            donsh...@fedex.com or
  Federal Express Corp.              dcsh...@fedex.com
  Information Management
  3865 Airways Blvd; Comat 8530      Client/Server Unix
  Memphis, TN 38116-8530             RDBMS Technologies

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 The opinions I express are not necessarily those of FedEX.
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/



 Mon, 06 Nov 2000 03:00:00 GMT   
 ftp 'text file busy'

Text file busy normally means that the file is being executed.
In any event, standard FS's will allow to first remove (rm) the file,
and then you can put a new version as the old file no longer exists.
(FYI) Any currently executing programs should still run off the old code
until the last child dies.

The difference in effect that you were reporting might be caused by
different handling by the ftpd and the client.  The ftpd will not rm the
file before copying as it might be a security problem, whereas the ftp
client doesn't care what you do, and will rm the file at first glance.

Unfortunately, you reported the reverse of this, which is too bad, it
means your ftpd is not so great.

BK



 Wed, 08 Nov 2000 03:00:00 GMT   
 ftp 'text file busy'

If the system reporting "Text file busy" is AIX, there's a much
simpler explanation.  Read open(2) and note this comment:

ETXTBSY File is on a physical file system and is already open in
        a manner (with the O_RSHARE or O_NSHARE flag) that precludes
        this open; or the O_NSHARE or O_RSHARE flag was requested
        with the O_NDELAY flag set, and there is a conflicting open
        on a physical file system.

The AIX ftpd opens the file it is processing with an O_?SHARE flag.
An attempt by another process -- e.g., head, tail, more, less --
to open the file while ftpd has it open in that way will produce
the ETXTBSY errno response from open.

Vic Abell <a...@purdue.edu>



 Wed, 08 Nov 2000 03:00:00 GMT   
 
   [ 3 post ] 

Similar Threads

1. NFS 'Text File Busy' Problem

2. NFS Craziness: 'Text file busy'

3. 'text file busy' message on cp

4. 'text file busy' message on cp

5. text file busy during ftp

6. unmounting 'busy' Netware file system

7. `Text file busy' (more)

8. FTP 'put' file permissions

9. 'Text file busy' when exporting NFS?!?


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software