X-Recipient: archive-cygwin@delorie.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
	:references:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=u9PlGKBdsuGI3bafOv8S2SWSTiMwn
	/148RSArPmXNJkpzvSSJ7bE+s2gK0TI0B2VC93zC7r+k8HW07OatFnIJBxR0HkY7
	0/Cn2+MQguryjj5MylIAFKpw17CElc4/e88Mqa+AL0g08prrythyqhCiFgBEZhfO
	BbK2iPMVWAK8DM=
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
	:references:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=mVNmn8NtnVOX9SfzFai/+/dRwhY=; b=d4b
	zmvNeOAJb30gSmkYCeent0ICrohVXSNacSuRHmM5gJMsMhE6FWK43AOaNlHocsK5
	A3t/+n+FTAsklOhp3jf42NdwKfuYXbhLBCOljR5yp/WPxe+LE5KKVKoss8IOUxkh
	cqLG1srWW1ccbBj8Wut0SL26nWF4OkisD3FgWH1o=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=one's
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=1576254037;  x=1607790037;  h=from:to:subject:date:message-id:references:in-reply-to:   content-transfer-encoding:mime-version;  bh=sTyhew1XtNPfyJiNYfmg8m07Ns3lbd5RjLdZZz2v720=;  b=RzQGDRkQBleAPQBRCm9jK610dyHkLVquAlCh+5tNeFzQnGr+VwU/2xiZ   p2DtLQOQD4ie89lYIzeCgATXO22ButH6UM2hjAxqlZVh3OohzSsEqoDhn   BNsc4AhItwZh83Z8hG7/E90FW4Zw+/QWboMzPXiim4ao28TxiMp6sx9Xj   ieBXRq2RrR9A0wwyZI0xGxqa4QPz0hRaEqe12bMg2qyAkYNy7sZxfkRxG   EwCWLDUBvWkNQZBfmWZWnf9n4dO4TlEuF/O/wB6SLKl9M7U1rYWhNAV+s   1v+9vc86GABnhtlSeiJkD8ROrpoBdoQyRwcup4MGPaBaSpvqybX2y6E6h   A==;
IronPort-SDR: KwfMI4KjWvwHWU1fKH6sqU92pxXONCibYshYUCqoH7kb9TNHeV8I+wSLgD1+zEHhXX4vnFxwEy oBBCX8af7gCQ==
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PxMZ1/0H5XMWKt2cp2n4bBlPfDtAV5Y/RcmMK3EeExhEBisO9t0cD4jpBz6CEpTtEmzPqLkGtrwL69371siLSFGRaah9s6S7nfb339UWKZl67/wnB71RexewpUE8FfIYoAVCgXDL2Bd9GIDnLtTtAn6f9Hj31G7JgV1M2dzkFnqucWFH8fIYfF6sjBESwCgcrykjNFLqG6ShyqhEjN209rOKeMSAW8OaTD3Dp7dFbUhB0mTHtVL1ldB2rmpWJuD0EM1K8XMJCuOaXV0FXhkAp6twLkuZY3cktE0/L77s3Pz65NXkhWVb45d4OUpUouri/EskbMq4rxQkxKSVsg6tzw==
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=sTyhew1XtNPfyJiNYfmg8m07Ns3lbd5RjLdZZz2v720=; b=jX+oJMbBMN4TfTZ6u+ytvHtPseDikShUKH2Q3uytNjiDiTvactv3Y27ug0CL35foLSPyWWKczOQFRF1P7jsogaKXhCOHFeHYFNEmbTwPEmGRCbWF2EpYDHLfZ2UBH3DV/Z0scZAQewCFJu3+AAAXPKUW6wnp/vbTjRTf6bpyjUh8U4v8BibOK/tzl6kW80DcUAm32BI9iua9Ha4CapPMT2TVXfdH2wRCg4kbC4cQ9gsINB/i7xsv+3lkzmYZ5AHxM0XjTYwFYV2pgomjf4R+EOZARKatjhk3GZRKdOBNbFbYnjr1k+xiENGu+aNeTQf1dQcs2IDz1kLvhaqwHUH88A==
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=sTyhew1XtNPfyJiNYfmg8m07Ns3lbd5RjLdZZz2v720=; b=BC9YSfRjycW+HeIQ5Py/E4xBSR6oPGyTWO06RZ7m52p8DE12jEG/KnAUoSyIxWznRODu7Hd1m0p0wSHZOCZJRgyYeLmx5FahIOp45C2H2m+Tj5t+2r4AIdrvPDfnEz4fTLVCd6ns2oaVw5eE+VsdzO6P0UXpUfoUDHhskleCdUU=
From: "Buchbinder, Barry (NIH/NIAID) [E] via cygwin" <cygwin@cygwin.com>
Reply-To: "Buchbinder, Barry (NIH/NIAID) [E]" <barry.buchbinder@nih.gov>
To: cygwin <cygwin@cygwin.com>
Subject: RE: non-persistent storage?
Date: Fri, 13 Dec 2019 16:17:42 +0000
Message-ID: <BYAPR09MB29010EDD6B0DA9BE871504959B540@BYAPR09MB2901.namprd09.prod.outlook.com>
References: <BYAPR09MB29010912EBAE9D8F0196D35E9B550@BYAPR09MB2901.namprd09.prod.outlook.com> <20191212220749.GB12864@tik.uni-stuttgart.de> <CACoZoo1crFaE0ZHBVZaps+F93MyX1c4MN5-5awJ=jFmEAE2vnA@mail.gmail.com>
In-Reply-To: <CACoZoo1crFaE0ZHBVZaps+F93MyX1c4MN5-5awJ=jFmEAE2vnA@mail.gmail.com>
authentication-results: spf=none (sender IP is ) smtp.mailfrom=barry.buchbinder@nih.gov;
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 7NS60yQ+MzeFVNCQFVzGpmCilANyc1kvnvuCGb/mmKSXZhvf1kq/9tNm6pQ6CIKdhhmqExYnreINztB0GMkunA==
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id xBDGLHaX012141

>On Thu, Dec 12, 2019 at 5:08 PM Ulli Horlacher wrote:
>
>>Erik Soderquist sent the following at Thursday, December 12, 2019 5:45 pm
>>
>> 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 the opposite: all processes must read and write the same data!
>> And the data must be gone when system shuts down or even if there is a
>> power failure.
>
> 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 you the "destroyed even at power failure"
> impermanence you are looking for. I know it is not in the normal
> layouts (like /var/run/ would be), but we are working around limitations
> imposed by Windows.

One could put a script, batch file, or a link thereto in one's startup
folder that will run on Windows' boot.  The script/batch file would be
written to clean out the tmp files.  Google << windows startup folder >>.
If all processes, regardless of whether they start with the same
shell/subshell, will share the same temp file, one could create the file
upon boot using the same script.

Also, one could make the script that creates the temp file (e.g.,
.bashrc) check the file or an environmental variable so that a subshell
doesn't create a new temp file, if that's how you want it.

- 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


