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

Re: [Sheflug] SuSE : Spaces in a log-prefix?



On Thu, 2005-07-07 at 10:41 +0100, lesleyb wrote:
> Hello
> 
> I can't seem to get this minor problem sorted out.
> 
> Using the variable :
> 
> $LOG_PR1="LAB_TEST_IN "
> 
> with a filter rule with this action
> 
> -j LOG --log-prefix $LOG_PR1
> 
> correctly logs the event but the trailing space gets lost in the log so 
> that I get
> 
> LAB_TEST_ININ=eth0
> 
> instead of
> 
> LAB_TEST_IN IN=eth0
> 
> Anyone know the right way to get the desired result?
> 

can you escape the space to make it a hard space?

eg "LAB_TEST_IN\ "

Not sure if this is valid for where you are using it ...


 









___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.