Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[HTCondor-users] condor_who spits out garbage message
- Date: Sun, 11 Jul 2021 15:59:05 +0200
- From: Bert DeKnuydt <Bert.DeKnuydt@xxxxxxxxxxxxxxxx>
- Subject: [HTCondor-users] condor_who spits out garbage message
Dear Condorants,
Here each invocation of 'condor_who' of version 9.0.2 spits out
the message:
~ Â condor_who
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
This on CentOS 8 and Fedora (anything). The reason is
that condor_who now exec's
netstat -n -t -p -w
The '-p' option, causes this line to be printed to stderr,
unless invoked as root.
Obviously, this extra lines are annoying, cause users to file
bug reports and make scripting a pain...
Workaround: replace condor_who with a one-liner script that
exec's condor_who, but closes stderr (condor_who 2>&-), or
alternatively, make a file /usr/local/bin/netstat which
exec's netstat, but closes stderr. Not ideal though.
But, is the use of netstat actually a good idea ... Even on CentOS 7,
of
stone age time, the first lines of man netstat read:
This program is mostly obsolete. Replacement for netstat is ss.
(No idea of Ubuntu/Debian though)
Greetings, Bert.
FYI: On Centos 7 the error message is different.