Search Results

Search: Posts Made By: Dedeepthi
3,580
Posted By Dedeepthi
Can you plz help me how to do that...? Here, my...
Can you plz help me how to do that...?
Here, my requirement is after renaming the ZIP files, the previous log files should be removed without any problem after the postrotate script.
In the...
3,580
Posted By Dedeepthi
Will the scope be there in logrotate after postrotate directive...?
Hi,
Please check the below code...:wall:


if [ `grep -c "/var/log/AAA/BBB" /etc/logrotate.conf` -eq 0 ] ; then
echo "/var/log/AAA/BBB/xxx_*.log /var/log/AAA/BBB/yyy_*.log {" >>...
6,222
Posted By Dedeepthi
Hi, I am using "compress" directive to zip the...
Hi,
I am using "compress" directive to zip the files in the logrotate code. But when using compress, I am unable to give the file name in the logrotate code.
Check the code below, for eg.,
...
6,222
Posted By Dedeepthi
How to give the zip file name in logrotate?
Hi,
How to give file name for the zip file while compressing in logrotate...
Should we need to give it in the logrotate.conf file or in the spec file...?
3,330
Posted By Dedeepthi
What my doubt is, irrespective of the size means,...
What my doubt is, irrespective of the size means, can I ignore using the directive "size" in the code..??
3,330
Posted By Dedeepthi
Hi, Please check the below example, if [...
Hi, Please check the below example,

if [ `grep -c "/var/log/XXX " /etc/logrotate.conf` -eq 0 ] ; then
echo "/var/log/XXX/*.log "{" >> /etc/logrotate.conf
echo " rotate 10" >>...
3,330
Posted By Dedeepthi
logrotate irrespective of the size of a file/directory
hi,
How to logrotate irrespective of the size of a file/directory...?
Please help me in this regard...
16,165
Posted By Dedeepthi
Thanks for ur reply @dagio. But I actually need...
Thanks for ur reply @dagio. But I actually need that to be done through the shell script.
I got it almost.
16,165
Posted By Dedeepthi
Thank you jsmithstl.... Its working for me now...
Thank you jsmithstl.... Its working for me now...
16,165
Posted By Dedeepthi
How to add cron job in /etc/crontab
Hi,
How to add a cron job in /etc/crontab using a shell script.??:confused:
Actually the requirement is we need to run a script say, XXX.sh every 10 min through “cron”.
That can be achieved by...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 08:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy