Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-20-2010, 12:52 AM   #1
LQ Newbie
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Cygwin & in-memory storage of (temporary) files?


I am using Cygwin so writing to /dev/shm is not an option.

is there a Cygwin equivalent to write to device shared memory and then cat it back like the last example.

Old 10-20-2010, 05:55 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

I took the liberty to cut your post out of the dead, unrelated
thread, and create a new thread for you. Please don't thread-jack
and necro-post. Enjoy your stay at LQ.

Old 10-20-2010, 11:43 PM   #3
LQ Newbie
Registered: Oct 2010
Posts: 2

Original Poster
Rep: Reputation: 0

sorry - didnt think it was an unrelated topic.

i had a loop which i was trying to speed up by not echo to file each time the loop ran so was trying to write to a /dev/shm as per previous posting.

regardless, i have recently been told the solution.

on each loop instead of echo $VAL > $FILE

Have a new variable updating dynamically


then at the end of the loop just echo $NEW

to do it with a line feed for each value do it


then echo it out with echo "$NEW"


Last edited by rapidgeo; 10-20-2010 at 11:44 PM. Reason: error


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
storage of temporary variables in linux while executing c program. kumar.anupam Programming 5 02-23-2008 01:21 AM
storage of temporary variables in linux while executing c program. kumar.anupam Linux - Software 1 02-19-2008 07:16 AM
Cygwin & makefiles - not finding files in -I'd directory BrianK Programming 6 09-20-2007 11:46 AM
Temporary storage of password in shell script ansbaradigeidfran Programming 9 10-25-2006 09:03 AM
crontab & quota files are temporary files? hamish Linux - Software 0 07-10-2004 02:09 PM

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration