This is the mail archive of the
cygwin
mailing list for the Cygwin project.
How to write to shared memory?
- From: "Cameron, Barrett" <b dot cameron at fugromcs dot com dot au>
- To: <cygwin at cygwin dot com>
- Date: Wed, 20 Oct 2010 14:21:11 +0800
- Subject: How to write to shared memory?
Hi,
I have a bash loop which I have significantly sped up by using:
for ((i=0;i<=Z;i++)); do echo $i; done
instead of other format for loops as well as using internal math like:
NEWX=$(($EAST+$DX))
Instead of let or expr. This process is now heaps faster but I want to
echo the data to a file but not have to write to a file on each loop
cycle as it slows it down.
On native linux you would write:
echo $NEWX > /dev/shm/new
and then at the end of all the loops at the end of the script write to a
file with:
cat /dev/shm/new > $OUT
--> Finally to the question. How do you do this with Cygwin??
Cheers,
Barrett.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple