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-persistent storage?

2019-12-12 Thread Jürgen Wagner
And regarding the tmpfs (RAM disk) , you can use /dev/shm. # date > /dev/shm/key # cat /dev/shm/key Fri Dec 13 07:26:03 CET 2019 # It is not advisable to store larger amounts of data there, but an encryption key should be fine. Cheers, --j. On 13.12.2019 00:21, Ulli Horlacher wrote: On Fri

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: Bug in "factor" (coreutils: GNU core utilities (8.26-2), 64bit edition)

2019-12-12 Thread L A Walsh
On 2019/12/11 23:36, Bernd Eggen wrote: Hello, Some time ago I found that the Cygwin-64 "factor" command did not seem to terminate with certain numbers, eg try: -> echo '3401347*3861211*12099721' | bc | factor The developers provided a fix (in GNU coreutils 8.29), however, after some two yea

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-persistent storage?

2019-12-12 Thread Jürgen Wagner
Ok, we're getting closer. - Run cygserver-config as an administrator. - Do "net start cygserver" That will provide shared memory capabilities. Then try this: # shmtool w myFunnyC8380ufsKey Shared memory segment exists - opening as client Done... # shmtool r Shared memory segment exists - openi

Re: non-persistent storage?

2019-12-12 Thread Ulli Horlacher
On Fri 2019-12-13 (00:03), Jürgen Wagner wrote: > 1. You create a RAM disk How do I do it with cygwin? > 2. You encrypt the data with a ephemeral key This is exactly what I want to share between processes! -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK

Re: non-persistent storage?

2019-12-12 Thread Ulli Horlacher
On Thu 2019-12-12 (17:45), Erik Soderquist wrote: > This is very hacky, but I believe you can get the effect you want by > having an admin process auto-start at host startup, identify itself, > and then set parts of its own /proc/ process ID tree as world > read/write. It is not possible to write

Re: non-persistent storage?

2019-12-12 Thread Jürgen Wagner
I can see two options: 1. You create a RAM disk and the contents will obviously be gone when the system reboots or crashes. 2. You encrypt the data with a ephemeral key that will be lost on reboot (e.g., kept in shared memory). When the system comes up and finds itself unable to read the data,

Re: non-persistent storage?

2019-12-12 Thread Erik Soderquist
On Thu, Dec 12, 2019 at 5:45 PM Erik Soderquist wrote: > This is very hacky, but I believe you can get the effect you want by > having an admin process auto-start at host startup, identify itself, > and then set parts of its own /proc/ process ID tree as world > read/write. I think this will give

Re: non-persistent storage?

2019-12-12 Thread Erik Soderquist
On Thu, Dec 12, 2019 at 5:08 PM Ulli Horlacher wrote: > > On Thu 2019-12-12 (21:59), Buchbinder, Barry (NIH/NIAID) [E] via cygwin wrote: > > > If the temp file was created by mktemp and the name saved in an > > environmental variable, each bash shell could have its own file with not > > risk that a

Re: non-persistent storage?

2019-12-12 Thread Ulli Horlacher
On Thu 2019-12-12 (21:59), Buchbinder, Barry (NIH/NIAID) [E] via cygwin wrote: > If the temp file was created by mktemp and the name saved in an > environmental variable, each bash shell could have its own file with not > risk that an instance of bash would erase another instance's file. I need t

RE: non-persistent storage?

2019-12-12 Thread Buchbinder, Barry (NIH/NIAID) [E] via cygwin
Eliot Moss sent the following at Thursday, December 12, 2019 2:19 pm >On 12/12/2019 7:00 AM, Ulli Horlacher wrote: > >> I need to store some data (a few kB) non-persistent. >> On a real UNIX I would use /var/run, because after a shutdown all its >> content is lost. >> But on cygwin /var/run is stor

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

Re: couldn't start opengrads

2019-12-12 Thread cygwinautoreply
>Hello, >I want to start OpenGrads after I installed Cygwin, but it came with an >error message, I have uninstalled Cygwin and reinstall Grads again but the >same error occurred, this is the error message that I encountered >Microsoft Windows [Version 6.3.9600] >(c) 2013 Microsoft Corporation. Al

couldn't start opengrads

2019-12-12 Thread Candrasa Surya Dharma
Hello, I want to start OpenGrads after I installed Cygwin, but it came with an error message, I have uninstalled Cygwin and reinstall Grads again but the same error occurred, this is the error message that I encountered Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All righ

Mariadb Server 10.3.14 crashes

2019-12-12 Thread cygwin
Hi the community, I use mysqld-server 10.3.14 as a server for development and an alive backup server (in a MASTER-SLAVE configuration with a MASTER on Linux) When operating some changes on my MASTER, I have set the SLAVE (under Cygwin) to be a master for my application. But I realize the daemon cr

[ANNOUNCEMENT] Updated: proj-6.2.1-1

2019-12-12 Thread Marco Atzeri
New versions 6.2.1-1 of proj libproj-devel libproj15 (API bump) for cygwin are available in the Cygwin distribution: CHANGES Last upstream release. NOTES Additional Datumgrid for Europe, North America and Oceania are available on https://download.osgeo.org/proj/ while proj-da

[ANNOUNCEMENT] Updated: mutt-1.13.0-1

2019-12-12 Thread Marco Atzeri
New version 1.3.0-1 of mutt is available in the Cygwin distribution: CHANGES Last upstream bugfix update release. Full details on: https://gitlab.com/muttmua/mutt/raw/master/UPDATING DESCRIPTION The Mutt E-Mail Client "All mail clients suck. This one just sucks less." Mutt is a small but v

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

ilogbl(0.0L) value is wrong

2019-12-12 Thread Bruno Haible
POSIX [1] specifies that the return value of the functions ilogbf(), ilogb(), ilogbl() for a zero argument should all be the same, namely FP_ILOGB0. [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/ilogb.html In Cygwin 2.9, the value of ilogbl(0.0L) is not right. How to reproduce: