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

Re: tail -f automatisieren



* karlheinz Welker <k.welker@gmx.net> wrote:
> moin Liste,
> 
> Ich stehe hier vor einem kleinen Rätsel.
> 
> Wie kann ich ein log messages mit tail automatisch beim Systemstart
> ausführen.
> bissher musste ich immer folgendes mit Hand eingeben.
> 
> #tail -f /var/log/apache2/error.log > /dev/tty10&
> #tail -f /var/log/apache2/access.log > /dev/tty11&
> 
> Kann ich das nicht als script abspeichern und beim Booten automatisch
> ausführen lassen?
> Wie mache ich denn das am geschicktesten.

Du suchst das Paket 'console-log':

Description: Puts a logfile pager on virtual consoles
 console-log keeps logfile pagers open on virtual consoles. The
 default configuration puts exim's mainlog on tty8, and the syslog on
 tty9, in a less process. It can also make sure that this console is
 visible
 automatically after system boot so that a crashed system at least
 leaves the syslog readable on the console before reset. Using a pager
 makes searching, tagging and highlighting possible.


Gruß
Jens



Reply to: