APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

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" <rts@mediumsoft.cz>
Subject: Re: Disk write shell script
        charset="iso-8859-2"
Cc: "Fabio Giannotti" <fabiog@venmar.com>
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 <rts@mediumsoft.cz> > 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
rts@mediumsoft.cz



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> -> Synchronous hard drive writes from shell script ––>Re:Disk write shell script



Increase ad revenue 50-250% with Ezoic

Kerio Samepage


Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us





If debugging is the process of removing bugs, then programming must be the process of putting them in. (Edsger W. Dijkstra)





This post tagged: