Wouldn't it be best to just run that as a cron job?
alc6379
Cookie... That's it
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
try this in a script:
while /usr/bin/true
do
xterm -e tail -f logfile
sleep 3600
done
this will open the tail in an xterm, wait exactly one hour (or close enough anyway)
and then open another (the logfile should have changed)
you probably will want to start this approximately one minute after a rotation has
occurred for the best effect.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
as long as you have X11Forwarding set to yes on both the server and the client yes, you can
use xterm. For the server you must change sshd_config and restart. For the client you can
simply use -X (large x) on the command line.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494