TIP: Click on subject to list as thread! ANSI
echo: linux_bbs
to: Michiel Broek
from: Robert Couture
date: 2005-02-14 16:08:12
subject: Check for and delete a stale lock file.

Michiel Broek -> Robert Couture wrote:

 MB> If it's a lockfile with a pid in it you can send a kill -0 to that pid. The
 MB> exitcode of kill will tell if that pid existed or not.

No, it is a zero byte lock file.

 MB> Else use find with a test on mtime with a certain age, a couple of hours or
 MB> so.

Could you whip up a quick example to lead me in the right direction?

Robert.

--- JamNNTPd/Linux v1.0 - w/Mods by Hub2000
* Origin: Hub2000 FTN News Server (1:229/2000)
SEEN-BY: 633/267 270
@PATH: 229/2000 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.