[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Como saber se o arquivo está sendo usado ?
From: |
Flavio Torres |
Subject: |
Re: [shell-script] Como saber se o arquivo está sendo usado ? |
Date: |
Mon, 30 Mar 2009 11:52:03 -0300 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090318) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Leonardo Bites wrote:
> Estou fazendo um script que transforma arquivos txt em arquivos
compactados,
> mas estou tendo um problema de o script rodar sendo que a copia do arquivo
> txt ainda não acabou, Queria saber se existe uma forma de checar se o
> arquivo está em uso seu usar o ps aux?
>
Olá,
Para isso, use o lsof.
Um abraço!
- --
/*---------------------------------------------------*/
/* * Flavio Torres - Administrador de Sistemas*/
/* /_\ */int y,z;main(x){x=(x>0?-9:x);z=((z=(x+5)
/* o. .o */)>0?z:-z);printf(!x&&++y?"\n":z?z>y%3+y/
/* ((Y)) */3?" ":x<-5?"/":"\\":y?"|":"*");y-9?main(
/* ()) (() */++x):puts(" _|_|_")&&puts(" \\___/");}
/* ()^() A party animal isn't just for Christmas.*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAknQ3JEACgkQNRQApncg297y/ACg0e0MK4SdjBL2aQj9Kx630F97
YyIAn2DadXh10ar7lesk4IG/LlX6VGUn
=gxN0
-----END PGP SIGNATURE-----