There is a default logrotate in /etc/daily which looks like this
I looked in the logrotate.conf file and have this and just now uncommented compress and create.
I removed my entries in crontab that were forcing the rotation to run using the syslog-ng.conf file.
I shall see what happens tomorrow/tonight and will let you know. Thanks to you both for the help in the mean time!
I have never used this command before. I need to use the "compress" command to compress all files located in the subdirectories under the following directories:
/home/ftp/inbound/Fordin
Please advise, I appreciate your help.
Thanks,
Syed (3 Replies)
I am new to UNIX and I am trying to write a shell script. I want to be able to list all files that were created with yesterdays dates (APR 29 as an example) that are not 0 file size.Then in those files I want to look for the string 'Process Complete' and list all files that DONT have that string.... (8 Replies)
Hi, i have written a script in unix which produces two files(.csv file) at the end. Now i want to add these to files in a zip file and send the zip file across the network by FTP.
Problem is that i dunno how to make a single zip file containing the two files that have been created by the script.... (1 Reply)
i tried to use "find" to get all of yesterdays files but missed something in the 24 hours logic.
can anybody help me with this one?
i thought that -daystart -atime 1 was enough but i got more files (2 Replies)
Hello All
My first post in the forum. :)
I've this huge log files of size 20GB-30 GB in my unix server. I want to analyse the log file for some error messages. But because of the enormity of the size of these files i'm not able to grep/search the pattern in the file . Also, tried to gzip the... (1 Reply)
hi All,
I have this sample text file - access.log:
Jan 18 21:34:29 root 209.151.232.70
Jan 18 21:34:40 root 209.151.232.70
Jan 18 21:34:43 root 209.151.232.70
Jan 18 21:34:56 root 209.151.232.70
Jan 18 21:35:10 root 209.151.232.70
Jan 18 21:35:23 root 209.151.232.70
Jan 18 21:36:04 root... (2 Replies)
hi everyone ,
Can someone provide me a shell program to compress and decompress files using gzip , i dont know anything in shell programming , this code is a part of my project.
So can someone help with me the code ? (2 Replies)
I am trying to display todays and yesterdays .rej files from a directory.
ls -lrt *.rej | grep 'Aug 12' ; ls -lrt *.rej | grep 'Aug 13'
Which is working as above.
But i want take 'Aug 12' and 'Aug 13' from a variable and the command should work everyday.
I am able to get todays files by... (9 Replies)
I need help to do a script that will compress a file that's bigger than 5000 octets and won't overwrite the previous compress file.
lets say I have mylogfile.log and I would compress it I would become
mylogfile. 1. log and if I would compress again mylogfile.log it would be
mylogfile. 2.... (8 Replies)
I have written script which is working in Home directory perfectly and also compressing log files and rotating correctly. But, when i try to run script for /var/log/ i am able to get compressed log files but not able to get rotation of compressed log files. Please suggest.
I am using below command... (5 Replies)
Discussion started by: VSom007
5 Replies
LEARN ABOUT DEBIAN
ebndaily
EBNDAILY(1) User Commands EBNDAILY(1)NAME
ebndaily - get stats for ebnetd and send it to admins
SYNOPSIS
ebndaily [option...] mail-address...
OPTIONS -a INTEGER --ages INTEGER
keep INTEGER ages of old syslog files (default: 7)
-c TYPE --compressor TYPE
how to compress old syslog files; compress, gzip, bzip2 or none (default: none)
-h--help
display this help, then exit
-l FILE --log-file FILE
specify a syslog file (default: /var/log/ebnetd.log)
-n--no-mail
do not send report mail
-v--version
display version number, then exit
-1--fast
compress faster when using gzip or bzip2
-9--best
compress better when using gzip or bzip2
Arguemnts:
mail-address
receipient of a report from ebndaily.
REPORTING BUGS
Report bugs to m-kasahr@sra.co.jp.
COPYRIGHT
Copyright (C) 1997 - 2003
Motoyuki Kasahara
SEE ALSO
The full documentation for ebndaily is maintained as a Texinfo manual. If the info and ebndaily programs are properly installed at your
site, the command
info ebndaily
should give you access to the complete manual.
ebndaily (EBNETD) version 1.0 October 2006 EBNDAILY(1)