[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#350119: eliminate grep error message



le 31/03/2006,
Miklos Quartus nous écrivait :
> You might as well eliminate the grep error message. This comes when
> there is no config file found in /etc/apach2/conf.d directory. The error
> message is displayed on console or normal output when I stop apache2:
> 
> # /etc/init.d/apache2 stop
> Stopping apache 2.0 web server...grep: /etc/apache2/conf.d/[^.#]*: No
> such file or directory

my patch fix it :)

> < 		PIDFILE=`grep -i ^PidFile $i | tail -n 1 | awk '{print $2}'`

without pipe ? 

PIDFILE=$( awk '
	/^PidFile/ { r=$2    }
	END        { print r }
' $i ) 



-- 
téléphone : 03.90.24.00.19
courriel  : marc.chantreux@ulpmm.u-strasbg.fr
---------------------------------------



Reply to: