- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Preventing access to a file being FTP'd
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2007 03:16 PM
10-24-2007 03:16 PM
I have a process that FTP's a large file from a windows box to a HP-UX box. In fact there are a lot of FTP processes that occur fairly frequent in this fashion.
I have a job scheduled to run very frequently on the HP box that will grab any FTP'd file in the depository directory and process it.
Problem: How do I tell the process on the HP box to wait until the FTP process is complete before accessing the file?
Solved! Go to Solution.
- Tags:
- ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2007 03:29 PM
10-24-2007 03:29 PM
SolutionYou indicate 'any' FTP'd file though.
Can that be change to any file not named .transfer or .tmp ?
Or can you use a subdirectory or parallel directory during the transfer, moving when done?
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2007 06:41 PM
10-24-2007 06:41 PM
Re: Preventing access to a file being FTP'd
In the kernal when a file closes (so if the write is done) ther will be a trigger.
randevou router eamons pickup this singal to be sure the write is done. this is alsow a lot of work to program.
the easey way is to either use the rename (but not all ftp jops can do this nicely) ore use a extra trigger file that you put on the hp box after you pleased the large file.. if your job sees the trigger file it has to remove the trigger and does the job...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2007 06:47 PM
10-24-2007 06:47 PM
Re: Preventing access to a file being FTP'd
"Atomic" means "indivisible" in this context.
From the viewpoint of the process that accesses the transferred files, the transfer must be an atomic operation: it must be either completely and successfully done, or it must be completely NOT done (i.e. a file must not exist at the expected location).
Moving a file within the same filesystem (or, as a special case, renaming the file) is guaranteed to be an atomic operation at the operating system level. The solutions outlined by Hein exploit this property.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2007 08:23 PM
10-24-2007 08:23 PM
Re: Preventing access to a file being FTP'd
- Tags:
- Permission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2007 08:28 PM
10-25-2007 08:28 PM
Re: Preventing access to a file being FTP'd
another possibility is to FTP 2 file, the real data file and a flag file and start your process only when the flag file arrives.
In this way you will be sure tocatch teh data file completed. To avoid to chnage your script you can create a new one that run the origianl script only when the flag file is present. Just my .02$ based on a same problem in the past.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2007 12:15 PM
10-26-2007 12:15 PM