LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,

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.

thanks.
 
Old 10-20-2010, 05:55 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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.



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

Original Poster
Rep: Reputation: 0
Hi,

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

NEW="$NEW $VAL"

then at the end of the loop just echo $NEW

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

NEW="$NEW
$VAL"

then echo it out with echo "$NEW"

cheers.

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 AM.

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