Search Results

Search: Posts Made By: MadeInGermany
3,706
Posted By MadeInGermany
In my last script there is for instance in...
In my last script there is
for instance in *httpd*So $instance becomes the short name httpd-fakedir not the pathname /apps/apache/httpd-fakedir
3,706
Posted By MadeInGermany
My bad, $instance needs to be the short file...
My bad, $instance needs to be the short file name.
if cd /apps/apache
then
for instance in *httpd*
do
if [ -d "$instance" ] && [ ! -f /etc/logrotate.d/"$instance" ] && service...
3,706
Posted By MadeInGermany
The following makes sense (to me) for instance...
The following makes sense (to me)
for instance in /apps/apache/*httpd*
do
if [ -d "$instance" ] && [ ! -f /etc/logrotate.d/"$instance" ] && service "$instance" status >/dev/null 2>&1
then
...
3,706
Posted By MadeInGermany
I still don't get it. The...
I still don't get it.
The /apps/apache/httpd-capefsprod/logs/*log is a key and may only exist once.
It cannot be copied to other files in logrotate.d/
For the same reason a template file may not...
Showing results 1 to 4 of 4

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