[plug] cron.daily problem ' Thanks '

Robert Andrews squirrel at emerge.net.au
Mon Jul 22 23:07:35 WST 2002


Thanks Cameron & Leon I think I have enough to get me through this problem
Regards Bob Andrews.


-----Original Message-----
From: Cameron Patrick [mailto:cp at chem.com.au]
Sent: Monday, July 22, 2002 9:11 PM
To: plug at plug.linux.org.au
Subject: Re: [plug] cron.daily problem


G'day,

On Mon, 22 Jul 2002 20:55:32 +0800, Robert Andrews wrote:
| I have not used 'sed' nor do I understand how it functions I have a
| general idea after reading the man page postfix is operating correctly
|
| I think the part that confuses me is  /s/^.*= //p
| Is it possable for somebody to explain this line to me or at least
| tell me what is wrong.

The sed command looks for a line containing command_directory and removes
everything prior to an equals sign, including the space after the equals
sign.  So if you have a line that looks like

command_directory = /usr/bin

...then the sed script will output /usr/bin.  This sounds like a remarkably
fragile thing to do, because if your postfix config file contains comments,
or tabs instead of spaces, or something along those lines, the sed command
won't work.  (Then again, I don't use postfix, so I could be completely
off-target here.)

CP.



More information about the plug mailing list