Re: Checking for lock files.
From: Stachu 'Dozzie' K. (dozzie_at_dynamit.im.pwr.wroc.pl.nospam)
Date: 06/28/05
- Next message: Salve Håkedal: "Curious newbies question"
- Previous message: Chris F.A. Johnson: "Re: Using a variable in the Find command"
- In reply to: Noah: "Checking for lock files."
- Next in thread: Chris F.A. Johnson: "Re: Checking for lock files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Jun 2005 19:15:03 +0000 (UTC)
On 28.06.2005, Noah <Roger.Noah@YellowCorp.com> wrote:
> Hello all,
> Just curious how the group would handle checking for a lock file like
> nnnnnn.LCK where n is random.
> if [[ ! -f *.LCK ]] doesn't seem to work
> Would you use find, or does someone have a slicker method ?
If you're sure there is just one .LCK file, then you can use
`if [ ! -f *.LCK ]' construct. Note single brackets.
-- Feel free to correct my English Stanislaw Klekot
- Next message: Salve Håkedal: "Curious newbies question"
- Previous message: Chris F.A. Johnson: "Re: Using a variable in the Find command"
- In reply to: Noah: "Checking for lock files."
- Next in thread: Chris F.A. Johnson: "Re: Checking for lock files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]