On the RTL 3.0 CD, the default user environment 
   should likely include access the rtlinux manpages. 

   By default, they currently don't work, eg:
____________________________________________________________

% man rtf_get
No manual entry for rtf_get             %^(

% setenv MANPATH :/usr/rtlinux-3.0/rtldoc-3.0/man

% man rtf_get

rtf_get(3)                              8^)

NAME
       rtf_get -- read data from a realtime fifo
:
:
____________________________________________________________

    On my own system I've added at the bottom of /etc/csh.cshrc:

        if ( $?MANPATH ) then
            setenv MANPATH "${MANPATH}:/usr/rtlinux/man"
        else
            setenv MANPATH :/usr/rtlinux/man
        endif

    ..and the following at the bottom of /etc/profile:

        if [ -z "$MANPATH" ]; then
            export MANPATH=:/usr/rtlinux/man
        else
            export MANPATH="${MANPATH}:/usr/rtlinux/man"
        fi

    This ensures all bash/csh/tcsh login accounts get working
    rtlinux manpages.

    Either that, or add the above settings to the appropriate
    files in /etc/skel/, eg. .cshrc and .bashrc.

    Also, so that commands like 'man -k rtl' work, similar 
    mods should likely be made to these cron files:

        /etc/cron.daily/makewhatis.cron
        /etc/cron.weekly/makewhatis.cron

    eg:

        #!/bin/bash
        LOCKFILE=/var/lock/makewhatis.lock
        if [ -z "$MANPATH" ]; then                              ####
            export MANPATH=:/usr/rtlinux/man                      ##
        else                                                      ## ADD THESE
            export MANPATH="${MANPATH}:/usr/rtlinux/man"          ##
        fi                                                      ####
        [..snip..]
        makewhatis -w

    This way the makewhatis database picks up the rtlinux 
    manpages too.

    Note these settings do not break the default linux manpages; 
    the leading ':' ensures they are simply augmented.

-- 

   \___/
   |o,o|
 \/    )
----mm---------------------------------------------------------------------
Greg Ercolano                    UNIX NightOwl / Systems Programmer & Admin
[EMAIL PROTECTED]                              http://3dsite.com/people/erco/
---------------------------------------------------------------------------

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to