Re: non-persistant storage?

2019-12-16 Thread Corinna Vinschen
Hi Ulli, On Dec 12 13:00, Ulli Horlacher wrote: > I need to store some data (a few kB) non-persistant. > On a real UNIX I would use /var/run, because after a shutdown all its > content is lost. > But on cygwin /var/run is stored on disk. > > I cannot use an environment variable, because different

Re: non-persistant storage?

2019-12-13 Thread Ulli Horlacher
On Thu 2019-12-12 (17:06), L A Walsh wrote: > On 2019/12/12 13:40, Eliot Moss wrote: > > > Ah! I think what you want is a tmpfs or ramfs. > > Not sure if cygwin supports that ... > > > > Easiest thing might be to use /dev/shm. I used it during > development to store intermediate data

Re: non-persistant storage?

2019-12-12 Thread L A Walsh
On 2019/12/12 22:26, Brian Inglis wrote: I've been using /run, with /var/run as a symlink to that, created in a permanent postinstall script /etc/postinstall/zp_mk_run_var_links.dash (with some others), for some time. It's currently using ~28KB. Is it feasible to mount /run on say /dev/shm/run

Re: non-persistant storage?

2019-12-12 Thread Brian Inglis
On 2019-12-12 18:06, L A Walsh wrote: > On 2019/12/12 13:40, Eliot Moss wrote: >> Ah!  I think what you want is a tmpfs or ramfs. >> Not sure if cygwin supports that ... >>   > >    Easiest thing might be to use /dev/shm. I used it during > development to store intermediate data that was late

Re: non-persistant storage?

2019-12-12 Thread L A Walsh
On 2019/12/12 13:40, Eliot Moss wrote: Ah! I think what you want is a tmpfs or ramfs. Not sure if cygwin supports that ... Easiest thing might be to use /dev/shm. I used it during development to store intermediate data that was later to be transfered via a fifo... Basically check fo

Re: non-persistant storage?

2019-12-12 Thread Eliot Moss
Ah! I think what you want is a tmpfs or ramfs. Not sure if cygwin supports that ... Cheers - Eliot -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/

Re: non-persistant storage?

2019-12-12 Thread Ulli Horlacher
On Thu 2019-12-12 (14:18), Eliot Moss wrote: > > I need to store some data (a few kB) non-persistant. > > On a real UNIX I would use /var/run, because after a shutdown all its > > content is lost. > > But on cygwin /var/run is stored on disk. > > > I would think of temp directories, such as /tmp.

Re: non-persistant storage?

2019-12-12 Thread Eliot Moss
On 12/12/2019 7:00 AM, Ulli Horlacher wrote: I need to store some data (a few kB) non-persistant. On a real UNIX I would use /var/run, because after a shutdown all its content is lost. But on cygwin /var/run is stored on disk. I cannot use an environment variable, because different processes nee

non-persistant storage?

2019-12-12 Thread Ulli Horlacher
I need to store some data (a few kB) non-persistant. On a real UNIX I would use /var/run, because after a shutdown all its content is lost. But on cygwin /var/run is stored on disk. I cannot use an environment variable, because different processes need to read/write the data. /proc is non-persist