 |
|
 |
|
Next: iMac G3 No boot CD, no boot HDD
|
| Author |
Message |
External

Since: Oct 07, 2005 Posts: 23
|
(Msg. 1) Posted: Sun Aug 27, 2006 4:24 pm
Post subject: where does man put formatted manpages? Archived from groups: comp>sys>mac>system (more info?)
|
|
|
Hi.
Running Mac OS X 10.4.7 ...
After updating some software, I found that the the man command
produced the older manpage, rather the more recent manpage.
The command "man -c foo" does the right thing, but it doesn't put the
new formatted manpage wherever it's supposed to go. (I know this
because subsequent invocations of "man foo" show the old manpage.)
I figured the easiest thing to do would be to manually delete the old
formatted manpage. However, I can't find it.
Now the file /usr/share/misc/man.conf has the following:
---%<------%<------%<------%<--Cut-Here-%<------%<------%<------%<------
# Certain versions of the FSSTND recommend putting formatted versions
# of /usr/.../man/manx/page.x into /var/catman/.../catx/page.x.
# The keyword FSSTND will cause this behaviour.
# Certain versions of the FHS recommend putting formatted versions of
# /usr/.../share/man/[locale/]manx/page.x into
# /var/cache/man/.../[locale/]catx/page.x.
# The keyword FHS will cause this behaviour (and overrides FSSTND).
# Explicitly given catdirs override.
#
# FSSTND
FHS
---%<------%<------%<------%<--Cut-Here-%<------%<------%<------%<------
From this, I would expect formatted manpages to be in /var/cache/man.
However, there is no such directory; in fact, there's no /var/cache.
So, where are the formatted manpages going?
BTW, I tried "loate foo.1.bz2"; no luck there, either.
Suggestions? Thanks.
--
Art Werschulz (agw STRUDEL comcast.net)
207 Stoughton Ave Cranford NJ 07016
(908) 272-1146 >> Stay informed about: where does man put formatted manpages? |
|
| Back to top |
|
 |  |
External

Since: Jul 13, 2003 Posts: 2738
|
(Msg. 2) Posted: Sun Aug 27, 2006 4:46 pm
Post subject: Re: where does man put formatted manpages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <m2odu653mc.fsf.TakeThisOut@Machshevet-Werschulz-2.local>,
Art Werschulz <agw.TakeThisOut@comcast.net> wrote:
> Hi.
>
> Running Mac OS X 10.4.7 ...
>
> After updating some software, I found that the the man command
> produced the older manpage, rather the more recent manpage.
>
> The command "man -c foo" does the right thing, but it doesn't put the
> new formatted manpage wherever it's supposed to go. (I know this
> because subsequent invocations of "man foo" show the old manpage.)
>
> I figured the easiest thing to do would be to manually delete the old
> formatted manpage. However, I can't find it.
>
> Now the file /usr/share/misc/man.conf has the following:
>
> ---%<------%<------%<------%<--Cut-Here-%<------%<------%<------%<------
> # Certain versions of the FSSTND recommend putting formatted versions
> # of /usr/.../man/manx/page.x into /var/catman/.../catx/page.x.
> # The keyword FSSTND will cause this behaviour.
> # Certain versions of the FHS recommend putting formatted versions of
> # /usr/.../share/man/[locale/]manx/page.x into
> # /var/cache/man/.../[locale/]catx/page.x.
> # The keyword FHS will cause this behaviour (and overrides FSSTND).
> # Explicitly given catdirs override.
> #
> # FSSTND
> FHS
> ---%<------%<------%<------%<--Cut-Here-%<------%<------%<------%<------
>
> From this, I would expect formatted manpages to be in /var/cache/man.
> However, there is no such directory; in fact, there's no /var/cache.
>
> So, where are the formatted manpages going?
They're not being created.
>
> BTW, I tried "loate foo.1.bz2"; no luck there, either.
>
> Suggestions? Thanks.
If you enter 'man -h', you'll see that the man command shipped with
Tiger cannot be forced to create man pages (the '-c' option doesn't do
what the man page says).
--
Tom Stiller
PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3
7BDA 71ED 6496 99C0 C7CF >> Stay informed about: where does man put formatted manpages? |
|
| Back to top |
|
 |  |
External

Since: Jul 10, 2003 Posts: 290
|
(Msg. 3) Posted: Mon Aug 28, 2006 3:41 am
Post subject: Re: where does man put formatted manpages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Art Werschulz <agw.RemoveThis@comcast.net> wrote:
> Hi.
>
> Running Mac OS X 10.4.7 ...
>
> After updating some software, I found that the the man command
> produced the older manpage, rather the more recent manpage.
>
> The command "man -c foo" does the right thing, but it doesn't put the
> new formatted manpage wherever it's supposed to go. (I know this
> because subsequent invocations of "man foo" show the old manpage.)
>
> I figured the easiest thing to do would be to manually delete the old
> formatted manpage. However, I can't find it.
Me too. If you haven't, you could try something along these lines:
% echo $MANPATH
and then manually navigate the paths looking for your page. You
should be able to learn why one was favoured over the other and
how or whether you should change the install behaviour.
--
*--------------------------------------------------------*
| ^Nothing is foolproof to a sufficiently talented fool^ |
| Heath Raftery, HRSoftWorks _\|/_ |
*______________________________________m_('.')_m_________* >> Stay informed about: where does man put formatted manpages? |
|
| Back to top |
|
 |  |
External

Since: Mar 22, 2004 Posts: 528
|
(Msg. 4) Posted: Thu Aug 31, 2006 5:10 pm
Post subject: Re: where does man put formatted manpages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <tomstiller-AFA279.16462127082006.TakeThisOut@comcast.dca.giganews.com>,
Tom Stiller <tomstiller.TakeThisOut@comcast.net> wrote:
> In article <m2odu653mc.fsf.TakeThisOut@Machshevet-Werschulz-2.local>,
> Art Werschulz <agw.TakeThisOut@comcast.net> wrote:
> > After updating some software, I found that the the man command
> > produced the older manpage, rather the more recent manpage.
> >
> > The command "man -c foo" does the right thing, but it doesn't put the
> > new formatted manpage wherever it's supposed to go. (I know this
> > because subsequent invocations of "man foo" show the old manpage.)
> If you enter 'man -h', you'll see that the man command shipped with
> Tiger cannot be forced to create man pages (the '-c' option doesn't do
> what the man page says).
Well, there's always
% man foo >foofile.txt
which leads to interesting results depending on what tool (Word,
TextWrangler, etc) you open the resulting file in. >> Stay informed about: where does man put formatted manpages? |
|
| Back to top |
|
 |  |
External

Since: Jul 09, 2003 Posts: 924
|
(Msg. 5) Posted: Thu Aug 31, 2006 5:10 pm
Post subject: Re: where does man put formatted manpages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <carl-E6C3E5.17100731082006.DeleteThis@comcast.dca.giganews.com>, Carl
Witthoft <carl.DeleteThis@witthoft.com> wrote:
> In article <tomstiller-AFA279.16462127082006.DeleteThis@comcast.dca.giganews.com>,
> Tom Stiller <tomstiller.DeleteThis@comcast.net> wrote:
>
> > In article <m2odu653mc.fsf.DeleteThis@Machshevet-Werschulz-2.local>,
> > Art Werschulz <agw.DeleteThis@comcast.net> wrote:
>
> > > After updating some software, I found that the the man command
> > > produced the older manpage, rather the more recent manpage.
> > >
> > > The command "man -c foo" does the right thing, but it doesn't put the
> > > new formatted manpage wherever it's supposed to go. (I know this
> > > because subsequent invocations of "man foo" show the old manpage.)
>
> > If you enter 'man -h', you'll see that the man command shipped with
> > Tiger cannot be forced to create man pages (the '-c' option doesn't do
> > what the man page says).
>
> Well, there's always
> % man foo >foofile.txt
>
> which leads to interesting results depending on what tool (Word,
> TextWrangler, etc) you open the resulting file in.
Try: man foo | col -b >foofile.txt
--
Jerry Kindall, Seattle, WA <http://www.jerrykindall.com/>
Send only plain text messages under 32K to the Reply-To address.
This mailbox is filtered aggressively to thwart spam and viruses. >> Stay informed about: where does man put formatted manpages? |
|
| Back to top |
|
 |  |
External

Since: Mar 12, 2005 Posts: 134
|
(Msg. 6) Posted: Fri Sep 01, 2006 10:06 am
Post subject: Re: where does man put formatted manpages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Oct 07, 2005 Posts: 23
|
(Msg. 7) Posted: Fri Sep 01, 2006 10:23 am
Post subject: Re: where does man put formatted manpages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi.
Heath Raftery <hraftery RemoveThis @myrealbox.com> writes:
> Art Werschulz <agw RemoveThis @comcast.net> wrote:
> > Hi.
> >
> > Running Mac OS X 10.4.7 ...
> >
> > After updating some software, I found that the the man command
> > produced the older manpage, rather the more recent manpage.
> >
> > The command "man -c foo" does the right thing, but it doesn't put the
> > new formatted manpage wherever it's supposed to go. (I know this
> > because subsequent invocations of "man foo" show the old manpage.)
> >
> > I figured the easiest thing to do would be to manually delete the old
> > formatted manpage. However, I can't find it.
>
> Me too. If you haven't, you could try something along these lines:
>
> % echo $MANPATH
>
> and then manually navigate the paths looking for your page. You
> should be able to learn why one was favoured over the other and
> how or whether you should change the install behaviour.
Now, why didn't I think of that myself?
for f in `echo $MANPATH|sed "s/:/ /g"`
do
find $f -name zmanim\*
done
I think the problem was that I was convinced that there was an
out-of-date preformatted manpage somewhere, and I was focussing on
same, rather than using the simple solution above.
--
Art Werschulz (agw STRUDEL comcast.net)
207 Stoughton Ave Cranford NJ 07016
(908) 272-1146 >> Stay informed about: where does man put formatted manpages? |
|
| Back to top |
|
 |  |
External

Since: Jun 25, 2003 Posts: 592
|
(Msg. 8) Posted: Fri Sep 01, 2006 5:43 pm
Post subject: Re: where does man put formatted manpages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 1 Sep 2006 10:06:56 -0700, zit wrote:
> I recall "man -t foo" displaying a good looking document in NeXTStep.
> Hard drive died, so I can't be certain.
> OS X seems to need "man -t foo > foo.ps; open foo.ps"
> Can one eliminate the temporary file?
Under Mac OS X it's better to produce pdf files rather than PostScript. You
can do that using
man -t foo | ps2pdf - foo.pdf
and the pdf files can be cached in a location of your choosing. Here is a
shell script that I call "pman":
#!/bin/sh
MANDIR=${HOME}/Documents/Manpages
mkdir -p ${MANDIR}
for MAN
do
PDFMAN=${MANDIR}/${MAN}.pdf
[ -f ${PDFMAN} ] || (man -t ${MAN} | ps2pdf - ${PDFMAN})
open ${PDFMAN}
done
--
Dave Seaman
U.S. Court of Appeals to review three issues
concerning case of Mumia Abu-Jamal.
<http://www.mumia2000.org/> >> Stay informed about: where does man put formatted manpages? |
|
| Back to top |
|
 |  |
External

Since: Mar 12, 2005 Posts: 134
|
(Msg. 9) Posted: Wed Sep 06, 2006 1:24 am
Post subject: Re: where does man put formatted manpages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Dave Seaman wrote:
> On 1 Sep 2006 10:06:56 -0700, zit wrote:
> > I recall "man -t foo" displaying a good looking document in NeXTStep.
> > Hard drive died, so I can't be certain.
>
> > OS X seems to need "man -t foo > foo.ps; open foo.ps"
>
> > Can one eliminate the temporary file?
>
> Under Mac OS X it's better to produce pdf files rather than PostScript. You
> can do that using
>
> man -t foo | ps2pdf - foo.pdf
I don't need files of either kind.
Just want to read a man page now and then. >> Stay informed about: where does man put formatted manpages? |
|
| Back to top |
|
 |  |
External

Since: Jun 25, 2003 Posts: 592
|
(Msg. 10) Posted: Wed Sep 06, 2006 3:06 pm
Post subject: Re: where does man put formatted manpages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 6 Sep 2006 01:24:32 -0700, zit wrote:
> Dave Seaman wrote:
>> On 1 Sep 2006 10:06:56 -0700, zit wrote:
>> > I recall "man -t foo" displaying a good looking document in NeXTStep.
>> > Hard drive died, so I can't be certain.
>>
>> > OS X seems to need "man -t foo > foo.ps; open foo.ps"
>>
>> > Can one eliminate the temporary file?
>>
>> Under Mac OS X it's better to produce pdf files rather than PostScript. You
>> can do that using
>>
>> man -t foo | ps2pdf - foo.pdf
> I don't need files of either kind.
> Just want to read a man page now and then.
In that case, you only need "man foo". Problem solved.
--
Dave Seaman
U.S. Court of Appeals to review three issues
concerning case of Mumia Abu-Jamal.
<http://www.mumia2000.org/> >> Stay informed about: where does man put formatted manpages? |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|