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

Synchronous hard drive writes from shell
© December 2004 (newsgroup post)

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
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

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

Inexpensive and informative Apple related e-books:

Photos for Mac: A Take Control Crash Course

Take Control of iCloud, Fifth Edition

Take Control of Apple Mail, Third Edition

Are Your Bits Flipped?

Take Control of Pages

Printer Friendly Version

Have you tried Searching this site?

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

Printer Friendly Version

I may not have gone where I intended to go, but I think I have ended up where I needed to be. (Douglas Adams)

Linux posts

Troubleshooting posts

This post tagged:


Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode

SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)