lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] lynx and last visited site


From: russellbell
Subject: Re: [Lynx-dev] lynx and last visited site
Date: Mon, 19 Mar 2018 08:44:49 -0600

        Quoth X dej: 'Oh, this seems nice, how do you achieve that ?'

        It's been so long I've forgotten.  Inspecting my source I see
that I've changed the log level in LYUtils.c:


        src/LYUtils.c:  openlog("lynx", LOG_PID | LOG_NDELAY, LOG_LOCAL5);
        src/LYUtils.c:  openlog("lynx", LOG_PID, LOG_LOCAL5);
        src/LYUtils.c:          syslog(LOG_INFO | LOG_LOCAL5, "%s", buf);
        src/LYUtils.c:  syslog(LOG_INFO | LOG_LOCAL5, "%s", NONNULL(arg));


and added this entry to /etc/syslog.conf:

        local5.*                                        -/var/log/LynxLog

        Level 5 was unused on my system; any free number is suitable.

        There's an alternative system log, rsyslog?, that allows
direction of log entries on the basis of the logging program, that
would make this possible without hacking lynx.  Then again you can
probably write a script to filter them out of /var/log/messages:

        LastURI=`grep -w lynx /var/log/messages | grep http | tail -1 | cut -d" 
" -f6
        lynx $LastURI

would work for me;  varies with logging template.


russell bell



reply via email to

[Prev in Thread] Current Thread [Next in Thread]