From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15268 invoked by alias); 9 Jun 2017 10:14:41 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15202 invoked by uid 89); 9 Jun 2017 10:14:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=vary, traction X-HELO: mail-qt0-f176.google.com Received: from mail-qt0-f176.google.com (HELO mail-qt0-f176.google.com) (209.85.216.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Jun 2017 10:14:33 +0000 Received: by mail-qt0-f176.google.com with SMTP id u19so70402959qta.3 for ; Fri, 09 Jun 2017 03:14:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=loZSbuyYy/FdgO97aY49zrxkP/08THmTlooCIOOsY8o=; b=jWs44myvXJiiASw0bZTPee6GDzw+cnF7DM8Dlt73y2fRgHcbWp/1hotHgatepmssPq fHzrQV/Nz488Jmo6QSshvWWZfLqAIKZOJQkw7tqHe6exmFuFi8cuHMs6/8BfMbq0VdmX 0VFnVMlVwWgDqFEWd2qCcMbpAsN3DKT+4f0VTQD9r7vzSvT6uBOzqWGRNBt/P91QZ6fq lXh+H6FiIvvODnQx4jXMOy+HBRt+L5Htw/GNLVoXAkHI6iJV/T9mvpViRO5YipYz4GOK x2IFvF72yr69wGzuDraoMA+4gNz+r8dfOCwokzIoPFe6xZ8dVKOw1K+Mk6rhr/wVtgOD Pthw== X-Gm-Message-State: AODbwcARg5xH6Qjj9c3oSVd0QXXJSXW0g0T28qKNv/ljKdFm2OcZx0Ta VLW7mUt/CFzR6rGp+A3ZoSWTKdL+7Kqh X-Received: by 10.200.11.202 with SMTP id p10mr4221830qti.221.1497003276059; Fri, 09 Jun 2017 03:14:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.92.20 with HTTP; Fri, 9 Jun 2017 03:14:35 -0700 (PDT) From: Ugly Leper Date: Fri, 09 Jun 2017 10:14:00 -0000 Message-ID: Subject: Re: Starting a xterm window To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2017-06/txt/msg00077.txt.bz2 >> /usr/bin/xterm: Xt error: Can't open display: :0.0 >> /usr/bin/xterm: DISPLAY is not set Thanks for all suggestions. Both the following fragments seem to work flawlessly. Both incorporate a waiting time for XWin to gain traction before xterm is called: 1. Starting a xterm console from a .cmd file in a Windows Command Prompt box: include the lines bin\run bin\XWin -clipboard -nolock -multiwindow 2>nul timeout 2 > nul 2> nul bin\xterm -display :0.0 2. Starting a xterm console from a script in a bash (or mintty) shell: include the lines run XWin -clipboard -nolock -multiwindow 2>/dev/null & sleep 2 /bin/xterm -display :0.0 You can vary the pause e.g. timeout 3 or sleep 4. Maybe as brief a fuse as timeout 1 or sleep 1 will be adequate; but that would make me nervy about getting the same failure as in >> at the top of this post. -- 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