X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 32DCE39FE80A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1595008953; bh=/h7jE8Kem6QFJovxYDixmXsPrvZ+ZZDsmjF9Vvh03v8=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Onsk9gLolJQZPuBOP+7h79gq/pQQRNX6hGM60xAbr7xZuTdF7NZv9odRYtdIeVa0o Blz1raCoRST7fbU8cNM9j4szGT0WbuCO/5JYEim/IF+/Vaqx4vT3jiAUkn0itSOxtj JaqG+2KXJ8F4d/1zkkGm+d6ZphmYa6D7noHD/mrY= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 592093857028 X-CMAE-Analysis: v=2.3 cv=McgSRK3f c=1 sm=1 tr=0 a=rov2TMmdNa1L32Ajm2rx/g==:117 a=rov2TMmdNa1L32Ajm2rx/g==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=loFcDopfAy4A:10 a=w_pzkKWiAAAA:8 a=8qrcJEI7uQYqcFzy5XgA:9 a=QEXdDO2ut3YA:10 a=buB1NfXUTBUA:10 a=IfQ-iFkkCvMA:10 a=sRI3_1zDfAgwuvI8zelB:22 X-SECURESERVER-ACCT: bob AT bnlmcgowan DOT net Subject: Re: Is there a one-liner to start a xterm window (and close XWin at the end of the session)? To: cygwin AT cygwin DOT com References: <923d78cf-c120-1441-c00c-c946be5bd9fc AT dronecode DOT org DOT uk> Message-ID: <1d3a27e4-407f-6b8e-23e0-5c7f80d05dfb@gmail.com> Date: Fri, 17 Jul 2020 11:02:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CMAE-Envelope: MS4wfOm67t6LZ66KSyqNAUr2hidJtm/GDSdvpYTKD8PIJLu7spC0q4awwypMVnwz9f7vI5gcVUgMo3qISRG69innz5StI/ClyxrT0vQFXVjsoKDqlWibkNM2 m2oVLidzdcKmGDWD+6fuYn3KlcT4i1nmw3jsEyhRFPRp6o0dnwuBeOzA X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_DMARC_NONE, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Bob McGowan via Cygwin Reply-To: Bob McGowan Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" On 7/17/20 7:46 AM, Fergus Daly via Cygwin wrote: > 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 > You might try using forward slashes for the Cygwin portion of the command: @bin\xinit.exe bin/xterm -- -nolock -multiwindow ^ Bob -- 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