Computing.Net > Forums > Unix > Scripting question (beginner)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Scripting question (beginner)

Reply to Message Icon

Name: Kris
Date: September 14, 2003 at 09:29:04 Pacific
OS: Linux
CPU/Ram: unknown
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: September 14, 2003 at 16:10:05 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Scripting question (beginner)

Script question.... www.computing.net/answers/unix/script-question/7518.html

Bash Script Question www.computing.net/answers/unix/bash-script-question/6086.html

a simple shell script question www.computing.net/answers/unix/a-simple-shell-script-question/1832.html