delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/30/03:47:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20030730074652.80028.qmail@web9905.mail.yahoo.com>
Date: Wed, 30 Jul 2003 09:46:52 +0200 (CEST)
From: =?iso-8859-1?q?philippe=20guillaume?= <guillaume_pfr AT yahoo DOT fr>
Subject: Re: And now a problem with tcl
To: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.44.0307291214460.7444-100000@slinky.cs.nyu.edu>
MIME-Version: 1.0

So i can't call a script whose directory is not in the
path ...?
 Damned !!!
;)

Thanks a lot Igor 
 --- Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> a écrit :
> On Tue, 29 Jul 2003, philippe guillaume wrote:
> 
> > I've been searching for a long time about this
> > problem.
> > The command runs normally on Unix but not on
> Cygwin :(
> >
> > The problem concerns a command button which runs a
> > sh-script ...
> > Here is the syntax :
> >
> >     button .frPrincipal.thug\
> >         -activebackground "#beccbe" \
> >         -background "#d2e0d2" \
> >         -command {exec scriptsh &} \
> >         -cursor {hand1} \
> >         -font $font \
> >         -height {2} \
> >         -text {run scriptsh} \
> >         -width {22}
> >
> > The directory containing the scriptsh file is
> defined
> > in the PATH both on Cygwin and Unix.
> > But it runs on Unix and not on Cygwin.
> > Actually, i must type "exec sh /home/.../scriptsh"
> to
> > run it ...
> >
> > So please, what can i do solve this problem ?
> 
> IIRC, tcl doesn't understand POSIX paths.  So, your
> solution (exec sh ...)
> is correct (you could also most likely omit the full
> path from scriptsh,
> i.e, use "exec sh scriptsh", provided scriptsh *is*
> in the PATH).
> 	Igor
> -- 
> 				http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
> ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
>      |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski,
> Ph.D.
>     '---''(_/--'  `-'\_) fL	a.k.a
> JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "I have since come to realize that being between
> your mentor and his route
> to the bathroom is a major career booster."  --
> Patrick Naughton
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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