<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2Flockfile</id>
	<title>Linux/lockfile - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2Flockfile"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/lockfile&amp;action=history"/>
	<updated>2026-05-07T04:22:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Linux/lockfile&amp;diff=4989&amp;oldid=prev</id>
		<title>Kenneth: Created page with &quot;lockfile - conditional semaphore-file creator  lockfile(1): conditional semaphore-file creator - Linux man page - https://linux.die.net/man/1/lockfile  Suppose you want to mak...&quot;</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/lockfile&amp;diff=4989&amp;oldid=prev"/>
		<updated>2018-11-20T22:50:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;lockfile - conditional semaphore-file creator  lockfile(1): conditional semaphore-file creator - Linux man page - https://linux.die.net/man/1/lockfile  Suppose you want to mak...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;lockfile - conditional semaphore-file creator&lt;br /&gt;
&lt;br /&gt;
lockfile(1): conditional semaphore-file creator - Linux man page - https://linux.die.net/man/1/lockfile&lt;br /&gt;
&lt;br /&gt;
Suppose you want to make sure that access to the file &amp;quot;important&amp;quot; is serialised, i.e., no more than one program or shell script should be allowed to access it. For simplicity&amp;#039;s sake, let&amp;#039;s suppose that it is a shell script. In this case you could solve it like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
lockfile important.lock&lt;br /&gt;
...&lt;br /&gt;
access_&amp;quot;important&amp;quot;_to_your_hearts_content&lt;br /&gt;
...&lt;br /&gt;
rm -f important.lock&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install part of procmail:&lt;br /&gt;
 apt install procmail&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>