[plug] cron.daily problem
Cameron Patrick
cp at chem.com.au
Mon Jul 22 21:10:48 WST 2002
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