| UNIX/Linux Forum Archives · Rules and Guidelines · Disclaimer |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| saurabhjain |
Posted: May 12 2005, 06:43 AM
|
|
Newbie ![]() Group: Members Posts: 1 Member No.: 991 Joined: 12-May 05 |
Hi All,
i am running a oracle procedure which writes a file . The same file is picked up by another script which runs in a cron after every 5 minutes. Now the problem is that sometimes my script picks up a file while the procedure is still writing data in the file. is there is any way i can lock my file, so that no other process process a file while one is still processin the file. Thanx in advance Saurabh |
| andyb1ack |
Posted: May 12 2005, 02:35 PM
|
|
User Level: 4 ![]() ![]() ![]() ![]() Group: Members Posts: 98 Member No.: 513 Joined: 9-September 04 |
Hi,
No, I don't believe you can lock a file to prevent another process trying to copy it. You can do an fuser on the file though to see if it is still being used or written to before you pick it up though. Andy |
![]() |
![]() ![]() ![]() |