Re: [Forum] Netbank

From: Lars Clausen <lrclause@cs.uiuc.edu>
Date: Mon Sep 23 2002 - 21:14:45 CEST

On Monday, 23 September '02, Svend Erik Venstrup wrote:
> Søren Boll Overgaard wrote:
>
>> On Sun, 2002-09-22 at 10:20, Svend Erik Venstrup wrote:
>> > Svend Erik Venstrup wrote:
>> >
>> > > Hej Aalug
>> > >
>> > > Jeg skal til at bruge netbank.
>
>> > -[snip]-
>> >
>> > Problemet er lost, jeg ved blot ikke havd der loste det.
>> > Lidt surt, men nu korer det.
>>
>> Kig evt. på programmet "lsof".
>>
>
> -[snip]-
>
> For at lose problemet, var det nodvendigt at reboote,
> det fjerner jo de filer som evt. blokerede.
>
> Men outputtet fra "lsof" er stort og kryptisk
[...]

Du kan begrænse det ved at angive hvilken fil den skal kigge på:

$ lsof /tmp
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
lsof 26835 lrclause cwd DIR 3,1 8192 368742 /tmp
lsof 26836 lrclause cwd DIR 3,1 8192 368742 /tmp
bash 30401 lrclause cwd DIR 3,1 8192 368742 /tmp

Hvis du vil se alle ting i det directory, brug find:

$ find ~/src | xargs lsof
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
find 27025 lrclause cwd DIR 3,2 1024 909395 /home/lrclause/src/Java/ka
ffe-1.0.6/config
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
bash 14460 lrclause cwd DIR 3,2 30720 194861 /home/lrclause/src/dia
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
bash 12230 lrclause cwd DIR 3,2 2048 168080 /home/lrclause/src/dia-web
bash 31742 lrclause cwd DIR 3,2 2048 168080 /home/lrclause/src/dia-web

Hvis der er mellemrum i filnavnene, kan du bruge

$ find ~/src -print0 | xargs -0 lsof

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
Received on Mon Sep 23 21:14:45 2002

This archive was generated by hypermail 2.1.8 : Tue Jul 19 2005 - 16:04:08 CEST