Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsHi Experts!
I've certain third party unattended software running on a Unix/Solaris 2.8 machine. This software checks for a file in a certain directory and when it's there, it gets processed.
When the file is copied to the scanned location over a slow connection, it will get processed before the file is complete. Because it often concerns ASCII data, it is hard to find out in the software if the file is complete.
Four solutions have succesfully been tried:
1. Using a .ready file, that's put when the upload or copy is complete
2. Copying to a temp location and mv'ing afterwards
3. Placing it with no access rights and chmod'ing it afterwards.
4. Scanning the temp directory with a perl script and moving it when it's finished
But all these solutions have drawbacks in my system and configuration. I prefer something that can run unattendedly in a way that an external system does not have to do anything extra (solution 1, 2 and 3) or that my system gets cluttered by all kinds of scripts that do virtually nothing more than moving files around.
A few preferred solutions good be:
- Using a secure connection, where the security software checks by checksum for file consistency
- Using some kind of feature from UNIX/Solaris that does just this: locking a file until it is completely there
Note that it is not possible for our controlling software to execute commands on the target machine (except for things that can be done by SCP or SFTP, because that are the protocols that are used for transferring the files).
Any help or hints are appreciated. Third party software (payd or not) is not a problem.
Regards,
Abel
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: TintinPosted on 2003-12-18 at 15:32:52ID: 9968480
Comments are available to members only. Sign up or Log in to view these comments.