![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Attaching a logfile to the Script | matt02 | Shell Programming and Scripting | 9 | 06-17-2009 10:19 PM |
| Log rotation script | theninja | Shell Programming and Scripting | 2 | 01-08-2009 01:30 PM |
| Script to manipulate logfile text | rosspaddock | Shell Programming and Scripting | 11 | 12-02-2008 10:10 PM |
| Log Rotation Tool/Script | yelalouf | Shell Programming and Scripting | 4 | 12-17-2003 09:27 PM |
| perl script to filter logfile | norsk hedensk | Shell Programming and Scripting | 4 | 08-30-2002 05:51 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Logfile rotation script.
I'm trying to find or create a Perl script that:
Checks for and creates these files: notes notes.1 notes.2 notes.3 notes.4 The first represents the current log file and the others are older versions. Each time the script runs it would check for the existence of notes.3 and, if it exists, move it to notes.4. Then is should check for notes.2 and move it to notes.3 and so on, until notes is moved to notes.1. I've looked on the net already, but they're just too complex and try to do too much compared to my requirements. Does anyone know of a script that does this, or do you have any code that could be adapted easily? Thanks! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|