LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 01: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, 06:55 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
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.



Cheers,
Tink
 
Old 10-21-2010, 12:43 AM   #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-21-2010 at 12:44 AM. Reason: error
 
  


Reply


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 02:21 AM
storage of temporary variables in linux while executing c program. kumar.anupam Linux - Software 1 02-19-2008 08:16 AM
Cygwin & makefiles - not finding files in -I'd directory BrianK Programming 6 09-20-2007 12:46 PM
Temporary storage of password in shell script ansbaradigeidfran Programming 9 10-25-2006 10:03 AM
crontab & quota files are temporary files? hamish Linux - Software 0 07-10-2004 03:09 PM


All times are GMT -5. The time now is 12:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration