Re: RFE: add an import mechanism to the mysql_table
- On Thu, June 3, 2010 6:31 pm, Victor Duchovni wrote:
> On Thu, Jun 03, 2010 at 06:00:26PM -0000, Pau Amma wrote:I stand corrected.
>> foo.cf: dbConf.cf.in foo.cf.in
>> cat dbConf.cf.in foo.cf.in > foo.cf
> Make that:
> foo.cf: dbConf.cf.in foo.cf.in
> $(RM) -f foo.cf.tmp
> cat dbConf.cf.in foo.cf.in > foo.cf.tmp
> mv foo.cf.tmp foo.cf
> automated code must be robust, and so must not overwrite configuration
> files directly. For full reliability, that "cat" can be replaced by
> something that "fsync()s" the output file.
:goes back to his sandbox.