LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices


Reply
  Search this Thread
Old 01-12-2009, 02:10 AM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 128,878

Rep: Reputation: 118Reputation: 118
LXer: Using flock to protect critical sections in shell scripts


Published at LXer:

This isn't about a shell script, it's about a really cool technique to apply in shell scripts. Have you ever been worried about multiple instances of a shell script running because they might overwrite or corrupt the data or devices they are working on? Here's a way to prevent that. There's a Unix system call named flock(2). It's used to apply advisory locks to open files. Without exhausting the subject, it can be used to synchronize access to resources across multiple running processes.

Read More...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Patterns and string processing in shell scripts LXer Syndicated Linux News 0 12-27-2008 11:30 AM
LXer: Debug your shell scripts with bashdb LXer Syndicated Linux News 0 11-24-2008 08:21 PM
LXer: Using Traps Outside Of Shell Scripts On Unix Or Linux LXer Syndicated Linux News 0 07-09-2008 07:41 AM
LXer: Are Random Shell Scripts A Threat? LXer Syndicated Linux News 0 02-12-2008 10:20 PM
LXer: Tracking time using shell scripts LXer Syndicated Linux News 0 03-17-2007 01:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 07:31 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