🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #124

noclobber

#124
From: Dances With Babes
Date: Thu, 23 Jul 1992 21:32
9 lines
814 bytes
Does anyone know if the "set -o noclobber" command is atomic?
I'm trying to implement a semaphore in ksh, and this would be a good way,
provided it's atomic (that it,  no two people can create the file at the same time).

If it's not atomic, anyone know of a good way
to implement a semaphore using ksh?


-tesco
Technical Details
Message-ID: <91773@bu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!bu.edu!bumetb.bu.edu!tesco
References: <1992Jul21.070212.16485@gbrmpa.gov.au> <1992Jul22.014834.1384@jpradley.jpr.com> <1992Jul23.191928.4948@walter.bellcore.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!bu.edu!bumetb.bu.edu!tesco
From: tesco@bumetb.bu.edu (Dances With Babes)
Newsgroups: comp.unix.shell
Subject: noclobber
Message-ID: <91773@bu.edu>
Date: 23 Jul 92 21:32:34 GMT
References: <1992Jul21.070212.16485@gbrmpa.gov.au> <1992Jul22.014834.1384@jpradley.jpr.com> <1992Jul23.191928.4948@walter.bellcore.com>
Sender: news@bu.edu
Reply-To: tesco@bumetb.bu.edu (Dances With Babes)
Followup-To: comp.unix.shell
Organization: Boston University
Lines: 9