Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm a windows 2000 user with a Quake 3 game server being hosted on a remote Linux machine.
I've been playing around with telnetting over to the linux machine and I know a little about scripting.
The game server creates and writes data to a log file called games.log.
My goal is to have a directory with a log file for each day.
Basically, I want to write a script that each morning at 4am, it renames the games.log file to the current date (example: 09-14-03.log) and moves it to another directory.
Simple enough, right? But I'm a beginner when it comes to Unix scripting.
I can handle the renaming and moving... but how do I make this occur once per day at 4am without me having to do anything?
I'm using BASH shell.
Any advice would be appreciated.
Kris
junk2 at spatter dot net

Have a look at cron and crontabs. The man pages for cron will show you how to set up repeating tasks.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |