From: Warren L. <wl...@fo...> - 2006-04-27 07:31:58
|
thanks much! A call to sync every once in a while solved the problem. Warren ----- Original Message ----- From: "Paul Coldrey" <pa...@en...> To: <gum...@li...> Sent: Thursday, April 27, 2006 2:21 AM Subject: Re: [Gumstix-users] writing files to mmc card > wl...@fo... wrote: > > I am using the gumstix to read data from the serial port, and logging > > the data to a file on the mmc card. The datalogging program starts at > > boot time. There is no console , and therefore no way to gracefully > > close the files and exit the program. I see only two ways to stop the > > program: remove power or remove the mmc card. > > > > Doing either messes up the file. If I kill the process then the file > > is fine, but I can't do that without the console. I'm content to lose > > the last part of the file, but removing power messes up the whole file. > > > > Is there some simple way to deal with this problem? > > > > Warren > Oh, and making a call to 'sync' periodically might help too? > > -- > Paul Coldrey > http://www.ensigma.com.au/ > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |