SCO OSE 5.05 and Unixware.
This is a general question: let's say that I have a flat file that is
being written to occassionally by an application (I have a single user
dos application in mind) and let's say that I want to create a cron
job that will grab that file and send it to a printer, perhaps with a
How can I be sure that the application has finished writing to the end
of the file before I grab it ? Cron would check every minute, say,
and if the file existed it would send it to the printer and then erase
it. Of course I could rename the file before printing it. But does
that guarantee that I won't loose data ? What is the safe approach ?
joe mc cool SMIEEE
Tangent Computer Research BT71 7LN (www.tangent-research.com)
voice:(44)2837-548074fax:(44)-870-0520185 The more you say the less the better.