I found the CLI program lockfile. Going to see if that will work for me.
I was reading the documentation on CentOS and found that flock is not a
POSIX standard but lockf is. From there I found the lockfile program. I
was positive that I had looked for programs that started with the work
lock before. 

On Fri, 2007-07-27 at 08:57 -0600, Roy Souther wrote:

> Is there anyway to do file locking in a bash script? I need to remove
> the race hazard from a script that has multiple running instances per
> user, each trying to make changes to a text file. I need to get
> exclusive access to a file and make the other instances wait their
> turn.
> 
> Any ideas? Flock is supported by more advances script engines like
> Perl but flock seems to be beyond the ability of a simple shell like
> bash.
> 
> Royce Souther
> www.SiliconTao.com
> Let Open Source help your business move beyond.
> 
> For security this message is digitally authenticated by GnuPG.
> 
> 
> 
> 
> 
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying


Royce Souther
www.SiliconTao.com
Let Open Source help your business move beyond.

For security this message is digitally authenticated by GnuPG.



Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to