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
_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev