X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-4.8 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <507BE69D.3080804@alice.it>
References: <507BE69D.3080804@alice.it>
Date: Mon, 15 Oct 2012 13:07:17 +0200
Message-ID: <CAEhDDbDGjBCK2yRNigWvEwk6VZsLroe5X+JiS9SoiuZh_9BS8A@mail.gmail.com>
Subject: Re: Using nosleep with wrappers
From: Csaba Raduly <rcsaba@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On Mon, Oct 15, 2012 at 12:34 PM, Angelo Graziosi  wrote:
> In my .bashrc I have something like this:
>
> xf()
> {
>     LANG=''\
>     /usr/bin/xfig -specialtext -latexfonts -startlatexFont default \
>         "$@" 2>/dev/null
> }
>
> but, trying
>
> $ nosleep xf
> nosleep: Error: failed to execute command: xf
>
> The same occurs for
>
> picasa()
> {
>     TEMP=/home/$USER/Temp TMP=/home/$USER/Temp \
>     cyg-wrapper.sh "/WinXP/Programmi/Google/Picasa3/Picasa3.exe" \
>         "$@" 2>/dev/null
> }
>
>
> Is there some tricks to have nosleep working with wrappers like the above?

Hi Angelo,
You'll probably have to invoke bash explicitly; something like this (not tested)

nosleep bash -c xf

-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
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

