![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to execute 2 scripts, wait, execute 2 more wait, till end of file | halo98 | Shell Programming and Scripting | 1 | 08-01-2006 05:42 PM |
| How to find the File Age and wait for that... | redlotus72 | UNIX for Dummies Questions & Answers | 3 | 06-01-2005 04:13 AM |
| Lock File | canman | UNIX for Dummies Questions & Answers | 4 | 05-06-2005 06:28 AM |
| How can a file be locked for a certain time? | darthur | UNIX for Dummies Questions & Answers | 6 | 12-09-2003 11:35 AM |
| lock file! | sskb | UNIX for Dummies Questions & Answers | 4 | 10-24-2001 06:10 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Lock a file. AND Wait if file is locked
Hi,
I want to do the foll steps: 1. Check if someone has a lock on my file1. 2. if file1 is locked by any other user wait in a loop till another user releases lock 3. when lock released, lock file1. 4. do procesing (write) on file1. 5. processing complete. release lock on file1. Please also tell me how the can Wait mechanism can it be implemented best? Please reply |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|