Synchronous hard drive writes from shell script
What is this stuff?
If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
Newsgroups: comp.unix.sco.misc From: "Radek Tomis" <email@example.com> Subject: Re: Disk write shell script charset="iso-8859-2" Cc: "Fabio Giannotti" <firstname.lastname@example.org> Date: Thu, 5 Aug 1999 14:03:06 GMT Message-ID: <02cc01bedf4b$3fad5d20$8e0314ac@rtsnt> References: <37A8C3D4.25EFC00C@venmar.com>
<023b01bedf44$65984240$8e0314ac@rtsnt> > From: Radek Tomis <email@example.com> > Sent: Thursday, August 05, 1999 3:01 PM
[...] > 1. Inside your script for individual output commands: > > fildes 1=~,A+S : echo "line" >> /tmp/file > > This will append "line" to "/tmp/file" synchronously (i.e. the line > will be physically written to the disk drive before the command 'echo' > returns). > > Consider the following example using different output command: > > fildes 1=~,S : tail -300 /usr/adm/messages > /tmp/file > > This will synchronously append last 300 lines of "/usr/adm/messages" > to "/tmp/file. Sorry, this will not append, but create/overwrite instead. For append, add "+A" to "1=~,S" (">>" instead of ">" isn't necessary). -- Radek Tomis firstname.lastname@example.org
Got something to add? Send me email.
(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version
Increase ad revenue 50-250% with Ezoic