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!):
From - Thu Aug 5 12:24:45 1999
Xref: world comp.unix.sco.misc:102426
Newsgroups: comp.unix.sco.misc
Path: world!newsfeed.mathworks.com!news.maxwell.syr.edu!news.msfc.nasa.gov!info.usuhs.mil!uky.edu!xenitec!news
From: "Radek Tomis" <rts@mediumsoft.cz>
Subject: Re: Disk write shell script
Resent-From: mmdf@xenitec.on.ca
Submit-To: scomsc@xenitec.on.ca
Content-Type: text/plain;
charset="iso-8859-2"
Cc: "Fabio Giannotti" <fabiog@venmar.com>
Organization: Medium Soft, a.s.
Date: Thu, 5 Aug 1999 14:03:06 GMT
Message-ID: <02cc01bedf4b$3fad5d20$8e0314ac@rtsnt>
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
References: <37A8C3D4.25EFC00C@venmar.com> <023b01bedf44$65984240$8e0314ac@rtsnt>
Sender: news@xenitec.on.ca (xenitec.on.ca News Administrator)
Precedence: list
Lines: 29
X-Mozilla-Status: 8011
> 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
/Bofcusm/78.html copyright 1997-2004 (various authors) All Rights Reserved
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. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar