delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/07/17/12:33:00

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F7FC39DD83C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1594997216;
bh=BopqYVx/W1aaKLsNjWHj/5VnFCc3YDyLFcqBAMOAekQ=;
h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=iu72xwd5wKMMyziFlBjAp2oPx8LX00htN4GWbNnIifroCqM3zE4oNOGTgFu3NGXbi
/bCntx3P8Rx4q9Bx/5tR88bXU2EffRH1fZ32s5/x0K4jsnaxkyfhsFElgK6+qoBq9u
C0DBscI7nBAW2yzUBru0tQDi9Sno3EZHR554o1yQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9FF1139960D9
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=NrbRTpqO5XiJ6JuVNMEQOHrqWhuVH5XP0/pg4dv59KVqQX39s+zZ++rVqHz9FPCSGxqY/NXBW+10n83V/f3vrW994TpW7FplZy3cHkiNKgB1MciJr783DbantHYs8SM/RDPJeuZYvWqjrv4SGQbMwZM0g5EZ33KHtQKhMSJBnIVTfZeKhlqOKICojd/TJv5Z+74rNiBDDf8tYpxGPwYGpF8vx3HKMNtzV7bdNpbbPvL89mqYrQTIhqridu2BRMRYJu9ClaUv+UmNcqht/W27uH2Mbd5duAZ1vGAkz5pDa5gso04OyX5mTBh7v51KHS/FbTB4tIxV26/qygzDdo98cA==
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=KElz/yrkr9MWSWm6GibBQGnFeaj1qUVpUmsMvX7oQh0=;
b=CIpxbbziziAkP4VakUlCh6QV+yJVd6cgJHHx86VwEpPZw5UoeSRW4iWkLCijuu01YP+kzRzJ6wEZ10HdgobiZnNRGXYqVPxJ21t32FjjUjt8Wnn9t0ERxEO0txKoWs20l30Zyu6cRPJ0gCSgl+aCBmSaK7Orhse4TKjmWIrsf2Nn86jf1y25kb/xJCt4+dNRMKG2/w8EtPHgHhrweUA9Z/kpyv4efd+lnKDJFwlEx6AfskqsM1NPINr0b8iJVqWX1T5IiUiP7fAA8qiHy26sVUmSfILBIyEfIB6Bz6YaLHk9ZNqIMu7b4ROYVyAKPq574grK/lihiYYuFGnqDGubyQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
Subject: RE: Is there a one-liner to start a xterm window (and close XWin at
the end of the session)?
Thread-Topic: Is there a one-liner to start a xterm window (and close XWin at
the end of the session)?
Thread-Index: AdZcOIKTPJ7f3nfxR/q1emAa56DTUgAAicwAAAERwRA=
Date: Fri, 17 Jul 2020 14:46:45 +0000
Message-ID: <DB6PR0301MB2533926BC19A65DF14F2CD60A47C0@DB6PR0301MB2533.eurprd03.prod.outlook.com>
References: <DB6PR0301MB2533C18F571E1DFA74D85A3EA47C0 AT DB6PR0301MB2533 DOT eurprd03 DOT prod DOT outlook DOT com>
<923d78cf-c120-1441-c00c-c946be5bd9fc AT dronecode DOT org DOT uk>
In-Reply-To: <923d78cf-c120-1441-c00c-c946be5bd9fc@dronecode.org.uk>
Accept-Language: en-GB, en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-incomingtopheadermarker: OriginalChecksum:1ACA20D4F48352CD8BDFFD42560B2EE3C9AD495FBF818D4D97332222EFC39A89;
UpperCasedChecksum:5E95DCDED958E404C8B8F6D6A46F7EC1C9C1B83B2570E852EAFE2B56138E5202;
SizeAsReceived:7105; Count:44
x-tmn: [7U3ZHhgxmntnO0UpYXEPfmULJkLMkwbs]
x-ms-publictraffictype: Email
x-incomingheadercount: 44
x-eopattributedmessage: 0
x-ms-office365-filtering-correlation-id: ee682631-de27-4e3e-60c7-08d82a603a83
x-ms-exchange-slblob-mailprops: zswcL9HXbeUAnUwCtDIoxYhHFeW9G9b7fH8Br1aS/RetuecJLAYxtpxR0Vk+Vcxid2y6kJvGtp+T8GRrE6n5oYo4lcvw3qf5PMnaCi9DD7Ld/GAE3cpna/o4H58vr1sZHAXJjla7cr3aBWtuiKr1JGmy1urUfXDnbEOsSzO+VCLiAUbIoNOSykqYIr+aETPIDmqncC48SIXTQGJ1dcG1ldiya/GdzmUqtWJc+W9k6qWcN9SueVN8d8ScVqKomFz3L6Ovqflc2oHRx0Cfo7JDj88tw+WdZoEkpNV/YWNDnCuqW7/F+/lH2Fos4uwU3FSz3B/vpb6zOWK1Qjsr/tOBDuu/JzZihJKgxwdKhucHTr4pa9AUjaK9gxuGvQvlZxXI5id7TXR8Qlpm5aa9VNBHQTqCC4eOjYlPN91PbnqUrarRRIwlZ8lPiIo+Sa8GUG+ZonK404VSTu/Ux25zGWVBdzCMPJdIS6JuGDiUcrl7ZFKhSkt6EACbGCGylKhFaCGQIDiWikcTaZ4PrH7n/KBQG/VpbF+C1ZjgBJvqhveTSVSst+hlBIaGJ5D1lxMv4T/CasnMreHomAOu0zubd5exOmv720nv1dPROKpw6dMqcyvnlh7BZ3jNd+NXrqHuGkha+wnMKl/ERGeac9QDjqk/5Gy2PdqdyqMd5dfKArMShoum19rA4+AdzStiYoiefoeTait41rq/dm4NI8HB/bvjGUZB8KDfNeP/Z55aXO7VZl5T+Qh3o0RkbN8Atnwaewkp
x-ms-traffictypediagnostic: DB3EUR04HT016:
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: bSqgGifjM1aWCFdYgFXoj3IFC2q64CUmKwdP0hIPN0VrhUzcg6u3iCIPNjYbJk2XbJzr72Znr4nQuoFAAQmsipRDCekeXR92ZUcGC32aIFff/AyGabDtJT3E9vehaId256sD06vwf9HFr2aJB9s/kda7MviRb3CGZxryj8FKRHFUB8tbbHseWmdANLKcbPKWGWSeTHcw1o6p9msfH3Y8Eg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:;
IPV:NLI; SFV:NSPM; H:DB6PR0301MB2533.eurprd03.prod.outlook.com; PTR:; CAT:NONE;
SFTY:; SFS:; DIR:OUT; SFP:1901;
x-ms-exchange-antispam-messagedata: IXjzD0QUj/C41ayphcNGDJ13IUc2ziMcc5Yed5GME/ITxOeL0x+tN0Azzt7VNzdKKm19hl/nOu/94vDTvwmx1WlPr90MbGMiRfB7zk+JTyE7pojjO/M53m7e+CPmmd+vZWUPl96TeOUHkxrnhZ1ahQ==
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-OriginatorOrg: outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-AuthSource: DB3EUR04FT035.eop-eur04.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: ee682631-de27-4e3e-60c7-08d82a603a83
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2020 14:46:45.8441 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT016
X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Fergus Daly via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Fergus Daly <fergusd84 AT outlook DOT com>
Cc: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>,
Fergus Daly <fergusd84 AT outlook DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 17/07/2020 13:48, Fergus Daly via Cygwin wrote:
>> At the moment I initiate a xterm session with a 4-line cmd script at the Cygwin root directory as follows:
>> @bin\run bin\XWin -clipboard -nolock -multiwindow 2> nul
>> @timeout 4 > nul 2> nul
>> @bin\xterm -display :0.0 2> nul
>> @bin\kill -KILL -- -1
>> Not wishing to mend what isn't broken, can anybody recommend a slicker opener (and closer)?
>> (All the lines, and all their components, seem to be essential.
>> Line 1 is a necessary precursor. Line 2 induces an apparently essential pause.
>> Line 3 opens the xterm session, which can then be progressed to its conclusion.
>> At which: resumption of the cmd script at line 4 kills the now redundant XWin session.
>> Thus guaranteeing a neat finish with no straggling processes.)
>> Thank you for any easement! A one-liner would be perfect.

Jon Turney replied:

> "xinit /usr/bin/xterm -- -nolock -multiwindow"
> (Although you might want to use startx instead, as perhaps that will 
> behave better if an X server is already running for display :0)

Thank you! This works beautifully at the bash prompt without all the hassle
about on-ing and off-ing XWin so it is already a great easement.

So I tried rewriting as a one-line cmd script* at the Cygwin root directory:
@bin\xinit.exe bin\xterm -- -nolock -multiwindow
(and then variations beginning with start / run) and got an error message ending in:
bin/xinit: giving up
bin/xinit: unable to connect to X server: Connection refused
bin/xinit: server error

Is there some way I can incorporate your one line  into a Windows command single line
that starts the xterm process, rather than the 4-line Windows script at the top of this post? 
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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