Article View: news.software.nntp
Article #16904Re: ps problem with INN 1.4
From: Per Hedeland
Date: Fri, 11 Apr 1997 00:00
Date: Fri, 11 Apr 1997 00:00
47 lines
2670 bytes
2670 bytes
In article <334B3607.7D01@netvigator.com>,
Georges Chan <gkchan@netvigator.com> wrote:
>On the other hand, if I do a "ps" on my SUN, it will give me:
>
> news 5262 1972 0 14:21:19 ? 0:00 /newslib/etc/in.nnrpd -s
In article <5igd4l$eff@augusta.math.psu.edu> barr@math.psu.edu (Dave
Barr) writes:
>Solaris doesn't support setproctitle(), so this is a known issue.
Neither does SunOS 4, but this works just fine there (i.e. overwriting
argv).
>You'll have to do without it.
Not quite, see below.
In article <yy3wwqci50e.fsf@velo.pp.vix.com> James Brister
<brister@vix.com> writes:
>It's an OS difference, you did nothing wrong. I'm not sure if the latest
>INN fixes this for the Sun. If it doesn't and anyone knows the answer,
>please let me know what needs to be done.
With 1.5 (and I didn't see any change in 1.5.1 that was relevant to
this), the behavior is still the same - when using the standard
/usr/bin/ps. However, /usr/ucb/ps, but *only* when including the 'w'
option, will almost work (of course in real *BSD, the 'w' option never
changed the *contents* of the output, just how much of it was shown -
Solaris' "UCB compatibility" is from some alternate universe). E.g.
'/usr/ucb/ps axw' will give things like:
18338 ? S 0:01 -foobar.du.etx.ericsson.se LIST .se LIST
23567 ? S 0:12 -super.du.etx.ericsson.se HEAD se HEAD
For those that have problems with these long lines, it's the wanted
output, followed by - in these two cases - 43/44 spaces and a repeat of
the last 8/7 characters of the wanted output. I think the "title" is
actually something like fprintf("%-74.74s%s", title, &title[23]) - go
figure.:-) INN *might* be able to workaround the weirdness, but you
definitely need /usr/ucb/ps and 'w' to see anything (and you have to be
real careful if you want to parse this in a script or something:-).
--Per Hedeland
per@erix.ericsson.se
Technical Details
Message-ID:
<5imb8c$ojt$1@news.du.etx.ericsson.se>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<334B3607.7D01@netvigator.com> <5igd4l$eff@augusta.math.psu.edu> <yy3wwqci50e.fsf@velo.pp.vix.com>Show Full Headers
Complete Article Headers
Message-ID: <5imb8c$ojt$1@news.du.etx.ericsson.se> Subject: Re: ps problem with INN 1.4 Date: Fri, 11 Apr 1997 00:00:00 +0000 From: per@erix.ericsson.se (Per Hedeland) References: <334B3607.7D01@netvigator.com> <5igd4l$eff@augusta.math.psu.edu> <yy3wwqci50e.fsf@velo.pp.vix.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 234241339 Organization: Ericsson Telecom, Stockholm, Sweden NNTP-Posting-User: per Newsgroups: news.software.nntp