delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/12/12/17:00:19

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:reply-to:to:subject:date:message-id
:content-type:content-transfer-encoding:mime-version; q=dns; s=
default; b=Xv7U9If/6ubj5szmMwYUmGgVVy07ZxlxYR+TMHIT0om9c483GSgp3
OVRp0gS+lZ60oNjKqb6ohEjq6qESB2bR2yYrBhxWVqcuGqOxGOnnsWpD4OvNgsjl
Fk9mVPIzr9lSbJodC9G9HU3xSg47+cdxUnNMr35SMqlc8fcWXHUryY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:reply-to:to:subject:date:message-id
:content-type:content-transfer-encoding:mime-version; s=default;
bh=5KVJo849HrT6GSOWjMVBArX0oOA=; b=ZPjdhoqBeT3VXA6AGrZHGpqOtMER
oGjAXX266dBgj1My9Wy6oXX97pNqV8/ObBN+nNRqc3oTMN9vaRNymwex7rue32v7
EfF/RjXI0AfRVnQMOuFztFgM1z/qdnc5VzLajBUsiV3y7YxG+2OZdVV97Nkv5zuf
fnBps8G0HmqQMw4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=H*F:D*gov, herein
X-HELO: nihcesxway3.hub.nih.gov
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.gov; i=@nih.gov; q=dns/txt; s=NIH; t=1576187965; x=1607723965; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=xs70Xsf4PJUmCU0BM7OgEGE0I9JiuDAxr5gCgyP5yQk=; b=ANfAEDCpJdOoRiGRziO8T99lBBzRhf9qUsh3YcNatTydeRYiD/3gBUFs veGWwPgwtBkAErBL5/uJaWQnw/MLPiv9Q9Vf3HK3Bz2IXYva6kLhW1OBt IwK45CT7+1AY4e0maYcswl8ZoMKgpvPckBrpiuPEB9N3l+OvZuFAaL5Au WraNdo2JQqDuZeTx7v3xZoS2vrzFwRL/WDtbrjPiXuLZIniMM2+z0oDaI 7FvJMnloUOYtP97v2uY+cL5eicl01EocOEHoTY7V2h7jsb26CoIqrl48r p1lRLrviI7083TSvyEpuIRuR3R0C3JysyEsJt16OX5dj8YSd7ep+1wUTO w==;
IronPort-SDR: matGBq+7EtsaoTrR0dhJss8amJWTO0Td1CHjJPYijkB8aN6taP/wSk4QU2ll61nZInFNANK0VR K/1ccod+VKgg==
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QhPyXvIgI96J+kwNxHJudlGBrH5oxuD3Sz3DBGfmkGaLZNV4lfd+sRgLI2oSnipX9MkPJr1z89lVcAX5sk5rFXCJsnfqLnMwZuLgyctRoeL5p57/rPB9yj4ZIusMiv+J59zkExVkRE/Fy/mj2ZmwejBfgDV2oXgypVAQFvEMNvfoKcylIkqESnXwlIyUU2yxMG3jUzEXnhUxTabLus+qs7dRUN0Ix6fJZBdsfGmArW6WDOOxSp8G4OLXRhCiAczN+jHVY7AMTP4yvu6RrmsK9zpZEAyvyrgNHlZ0fOv1dZ40hlerMxm64tdoNjCDjavcdOJxLHq8ahC12gSZ2TGDXg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xs70Xsf4PJUmCU0BM7OgEGE0I9JiuDAxr5gCgyP5yQk=; b=OoIPI8w+mvUYBEUiye012pAm+7V6XIyEtGZmCWKyfQsD86VuJYT7qmMAK72wYz1FDG3LJsMlwCIGJAlnJGPe7Ow+fd/k9XFJI/Ytgm6hVMc1tZkZFclzjvgsfgRJfj5r2yoTBvDH2k/HcpqyWoWNEINFl8XjcujuhpMB96blpRF43a+Fk0DCxn8U/nBdb4XApJ9RvtwsFwEl48zjzMwUbnS/6+7IS4x/LXBGrDkvglIuwhuBUwTDvZAYYbw6rP50h3ZyzkSqId6eJmYrzPHMALdakYYyEdxfwI+K07kgh0fiu8CJ7cA2lcAmpgYZ02sY00zha44bywOEVKAHEL17ig==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nih.gov; dmarc=pass action=none header.from=nih.gov; dkim=pass header.d=nih.gov; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.onmicrosoft.com; s=selector2-nih-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xs70Xsf4PJUmCU0BM7OgEGE0I9JiuDAxr5gCgyP5yQk=; b=JWp880xxlSHCwB/iIYEtYu/4ugPvqKPu/Tw4p/QhA3dbL+tkzDzEKWILmW9UXVWP3yOj/4qf6PfHBw4SOOpFShN8epI2SExtr4MjTD0Nd8NDrGSYm2RBIV5I18WQGYnK9iXVPgzSxZAoOooIOoUw8rBmtZ3W5kJC0jL5m7ZxaW4=
From: "Buchbinder, Barry (NIH/NIAID) [E] via cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Buchbinder, Barry (NIH/NIAID) [E]" <barry DOT buchbinder AT nih DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: non-persistent storage?
Date: Thu, 12 Dec 2019 21:59:22 +0000
Message-ID: <BYAPR09MB29010912EBAE9D8F0196D35E9B550@BYAPR09MB2901.namprd09.prod.outlook.com>
authentication-results: spf=none (sender IP is ) smtp.mailfrom=barry DOT buchbinder AT nih DOT gov;
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: VwiUKBm7knywfZ0PuPl+out+gJBNL7FB1mSLhmJP8mVg3kbMTYguQS4X79F2u4bT1ZIeq6LyWrjjU+/vVkN37Q==
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id xBCM01MJ032264

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 stored on disk.
>>
>> I cannot use an environment variable, because different processes need
>> to read/write the data.
>>
>> /proc is non-persistent (in respect to a reboot), but It is not a
>> generic storage place.
>>
>> What can I use with cygwin instead?
>>
>> Installing third party software is not an option, it must work with a
>> standard Windows (and cygwin).
>
>I would think of temp directories, such as /tmp. They can be cleaned out
>at will on restart, no?

Bash runs the file ~/.bash_logout when it exits.  One could use that to
clear a temp file out of /tmp.

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.

That assumes that this is consistent with your need for different
processes to read/write data.

Good luck,

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019