On Sat, 6 Sep 2003 08:05:13 +0700
Fajar Priyanto <[EMAIL PROTECTED]> uttered:
>
> Hi all,
> I run several tail commands to monitor several log files everyday.
> Instead of typing all the commands one by one on each terminal, is
> there any way I can make this automatic or I can make some kind of
> shortcut for the job?
also, create aliases in your .bashrc, like so:
alias tailp="tail -f ~/procmaillog"
then type "bash" to save it.
or write a script and bind it to a key combo if your WM supports it,
like so (pekwm keys file):
Chain = "Mod4 n" {
KeyPress = "f" { Actions = "exec ~/bin/filter" }
where filter is:
#!/bin/sh
~/bin/etermlog -n filter_local -e tail -n 50 -f ~/logs/deleted.log "$@"
exit $?
and etermlog is:
#!/bin/sh
exec /usr/bin/Eterm -F drift --bold-font \
drift -g 189x37 --shade 30 "$@"
exit $?
--
HaywireMac
Registered Linux user #282046
Homepage: nodex.sytes.net
++++++++++++++++++++++++++++++++++++++++++
Mandrake HowTo's & More: http://twiki.mdklinuxfaq.org
++++++++++++++++++++++++++++++++++++++++++
The truth you speak has no past and no future. It is, and that's all it
needs to be.
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com