Re: [Evolution] smtp config file
- From: "Patrick O'Callaghan" <poc usb ve>
- To: evolution-list gnome org
- Subject: Re: [Evolution] smtp config file
- Date: Thu, 19 Apr 2007 15:00:12 -0400
On Thu, 2007-04-19 at 10:02 -0400, Chris Murphy wrote:
cat %gconf.xml | sed s/oldsmtp/newsmtp/g > %gconf.xml
Dangerous. You're starting two concurrent processes, one reading from a
file and the other writing *to the same file*. Depending on race
conditions, some of the time the shell will truncate the file before the
'cat' has a chance to read it.
Use a temporay file and move it when done.
poc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]