Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: x11 logs?



This probably means that you upgraded from Tiger, and so have uncompressed Tiger man pages obscuring the compressed Leopard ones, in this case an outdated /usr/share/man/man1/syslog.1 preventing you from seeing the current /usr/share/man/man1/syslog.1.gz.

Here is how I fixed that:

First, make a backup of your /usr/share/man hierarchy in case anything goes wrong.

Then, as root:
         cd /usr/share/man/
 find . -iname "*.gz" -type f -exec gunzip -v -f {} \;

This uncompresses all the Leopard pages, replacing any outdated Tiger ones, and preserving timestamps. Still inside /usr/share/man/,
find . -type f -exec gzip -v {} \;

This recompresses all the Leopard manual pages, and compresses any non-obsoleted old pages which remain, again preserving timestamps.

Unfortunately, this leads to a bunch of broken symbolic links which are pointing to the non-nonexistent uncompressed versions of a page. (You can see this by running /etc/periodic/weekly/320.whatis.)

So a friend and I came up with the attached script, which adjusts all the symbolic link names and destinations to reflect the current, compressed situation.

Attachment: fix_man.sh
Description: Binary data


This repairs everything but one link, /usr/share/man/man1/pcast.1 which seems to represent an alternate, historical name for the podcast man page:

[Alacrity:/usr/share/man] jim% file /usr/share/man/man1/pcast.1
/usr/share/man/man1/pcast.1: cannot open `/usr/share/man/man1/pcast.1' (/usr/share/man/man1/podcast.1)

I manually replaced the broken man1/pcast.1 link with a working man1/pcast.1.gz link to point at the file /usr/share/man/man1/podcast.1.gz

Anyway, hopefully a future Apple OS installer will get this right from the beginning.

Now, when I "man syslog", I do see the "-C" flag documented.

-Jim

On Nov 21, 2007, at 09:13, Chip Griffin wrote:
On Nov 21, 2007, at 10:05, Chip Griffin wrote:

On Nov 21, 2007, at 04:05, Anton Rang wrote:

% syslog -C   ( console messages )

This doesn't seem to be mentioned in the man anywhere. There is a small case 'c' switch, but no upper case switch mentioned. How did you figure this one out?

Ah, I see that if I type 'syslog -help' I get different guidance than what is in the man ...


-- Chip


_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

References: 
 >x11 logs? (From: stephanebrossier <email@hidden>)
 >Re: x11 logs? (From: Martin Costabel <email@hidden>)
 >Re: x11 logs? (From: "Nathaniel Gray" <email@hidden>)
 >Re: x11 logs? (From: Martin Costabel <email@hidden>)
 >Re: x11 logs? (From: Anton Rang <email@hidden>)
 >Re: x11 logs? (From: Chip Griffin <email@hidden>)
 >Re: x11 logs? (From: Chip Griffin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.