Package: psmisc
Version: 21.8-1
Severity: normal
File: /bin/fuser

       -a     Show all files specified on the command line. By  default,  only
              files that are accessed by at least one process are shown.
This is not true anymore it seems. It seems -a is locked on.

Furthermore, try e.g.,
$ fuser /var/log/*
notice how the filenames go to stderr,
whilst the process numbers go to stdout.
How is one supposed to use that style of output?

OK, fuser /var/log/* 2>&1 I suppose.

#set -- $(fuser $@ 2>&1|cut -d: -f 1) #2>&1 for "POSIX fuser"
set -- $(fuser $@ 2>&1|perl -nwe 's/:.+//&&print') #psmisc 21.8-1!!
OK, it seems that 2>&1 will be needed for posix etc. You mentioned
that last time. OK.

By the way:
# fuser -s /var/log/* 2>&1|wc
    155     172    3549
# fuser /var/log/* 2>&1|wc
    155     172    3549
# fuser -a /var/log/* 2>&1|wc
    155     172    3549
# fuser -s /var/log/* 2>&1|grep -v :$|wc
     15      32     417
# fuser -as /var/log/* 2>&1|wc
    155     172    3549

Also the man pages says "In the default display mode, each file name is
      followed by a letter denoting the type of access"
However:
# fuser -s /var/log/* 2>&1|grep -v :$|tail ....
/var/log/lpr.log:     3707
/var/log/mail.err:    3707
I don't see a letter.

(I was using fuser in http://jidanni.org/comp/wwwoffle/wwwoffle-swat )


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to