LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-07-2004, 12:36 PM   #1
rtaft
Member
 
Registered: Aug 2003
Posts: 85

Rep: Reputation: 15
mv -f reliability


Say I have file ~/temp/a.txt and a file ~/final/a.txt and I overwrite the latter with the former by saying
mv -f ~/temp/a.txt ~/final/a.txt
Can i say with 100% certainty that when I read ~/final/a.txt it will always exists? Even during that nanno second that the move is doing it's thing?

Is there a C function that does the same thing with the same certainty?
 
Old 01-07-2004, 12:46 PM   #2
dubman
Member
 
Registered: Jan 2003
Distribution: Redhat 9, Fedora Core 1, Suse 8
Posts: 188

Rep: Reputation: 30
i would think it would depend to the size of the file. But you could test it out. Write one script that is looping the move statement. Then write a second script that is looping some sort of access statement. Let the two scripts run simultaneously and see if you ever get a "file does not exist" error.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
testing harddrive reliability? pandasuit Linux - Hardware 5 05-13-2005 01:44 AM
DVD writer reliability doctorwebbox Linux - Hardware 3 11-08-2004 02:05 PM
Laptop Compatibility and Reliability spaaarky21 Linux - Distributions 1 10-18-2004 07:59 AM
Reliability satwar Linux - General 3 06-27-2003 03:01 PM
tar reliability mikeyt_333 Linux - General 1 03-22-2002 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration