WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Trying to redirect Apache Access Log to console - but "wall" command is missing  (Read 2659 times)

Offline mrstarr

  • Newbie
  • *
  • Posts: 20
I want my microcore open terminal screen to show each hit on my webserver and from where on the current open console screen, as they occur in real time.... 

From this page: http://httpd.apache.org/docs/2.2/logs.html

"Apache httpd is capable of writing error and access log files through a pipe to another process, rather than directly to a file. This capability dramatically increases the flexibility of logging, without adding code to the main server. In order to write logs to a pipe, simply replace the filename with the pipe character "|", followed by the name of the executable which should accept log entries on its standard input.  Use "||" instead of "|" to spawn without invoking a shell:"

SO..., I thought I would pipe it to wall, which writes to all open consoles (and can be turned on off with mesg y/n...   by adding this addition to my httpd.conf:

    CustomLog "||wall" common


Problem...  tc barfs... "that there is no wall command installed"...   so I start App Browser installer with "ab" and search for "wall"...  or any package that might include it...    nothing found....

How do I get "wall" installed on my system, or is there a better way to do this?   I want to see every httpd hit on my dedicated microcore apache server as it occurs, and wall seemed the best way to go.


Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Hi mrstarr
Quote
How do I get "wall" installed on my system ...
Try installing  util-linux.tcz
« Last Edit: November 21, 2013, 09:19:40 AM by Rich »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Alternatively, use the normal log file, and one of the "file has changed" watchers (tail -f, tailf, inotify*...).
The only barriers that can stop you are the ones you create yourself.

Offline mrstarr

  • Newbie
  • *
  • Posts: 20
I installed util-linux  "on demand", then typed "wall", and got nothing....   

The info for the package did not list anything it contained other than "a collection of misc. linux utilities.  Der...."   

Wikipedia, provided more insight:   http://en.wikipedia.org/wiki/Util-linux and wall is not listed as included...

So.... where can I find... wall....? 

http://en.wikipedia.org/wiki/Wall_(Unix)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
wall is in util-linux.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Hi mrstarr
Trust me, it's in there. I don't think installing something  on demand  loads it. Try entering:
Code: [Select]
util-linuxThen try  wall  again.