shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Arquivos de lock


From: Bruno Gunter Fricke
Subject: Re: [shell-script] Arquivos de lock
Date: Mon, 2 Jul 2007 20:13:36 -0300

E o comando lockfile? Fica onde? ;-)

Aos que desconhecem:

NAME
       lockfile - conditional semaphore-file creator

SYNOPSIS
       lockfile -sleeptime | -r retries |
            -l locktimeout | -s suspend | -!  | -ml | -mu | filename ...

DESCRIPTION
       lockfile  can  be used to create one or more semaphore files.  If 
lock-file lockfile
       file can't create all the specified files (in the specified order),  it
       waits  sleeptime (defaults to 8) seconds and retries the last file that
       didn't succeed.  You can specify the number  of  retries  to  do  until
       failure  is  returned.   If the number of retries is -1 (default, i.e.,
       -r-1) lockfile will retry forever.

       If the number of retries expires before all files  have  been  created,
       lockfile  returns  failure and removes all the files it created up till
       that point.

       Using lockfile as the condition of a loop in a shell script can be done
       easily  by  using  the  -!  flag to invert the exit status.  To prevent
       infinite loops, failures for any reason other than the lockfile already
       existing  are  not inverted to success but rather are still returned as
       failures.

       All flags can be specified anywhere on the command line, they  will  be
       processed  when  encountered.   The  command line is simply parsed from
       left to right.

       All files created by lockfile will be  read-only,  and  therefore  will
       have to be removed with rm -f.----- Original Message ----- 
  From: Julio Cardoso 
  To: address@hidden 
  Sent: Monday, July 02, 2007 6:22 PM
  Subject: Re: [shell-script] Arquivos de lock


  Pega o guia foca e o manual do debian e senta pra ler aqui é só de shell 
  script eahoaeea
  Thiago Correia escreveu:
  >
  > Caros,
  >
  > Procurei na internet e não encontrei o que significa "arquivos de lock",
  > caso saibam favor me explanar.
  >
  > Abraços,
  >
  > 



   

[As partes desta mensagem que não continham texto foram removidas]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]