This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: problem running tcl/expect when it lives remotely


Ugh, top-posting.  Reformatted.

On Tue, 16 Aug 2005, Maloney, Michael wrote:

> -----Original Message-----
> From: cygwin-owner@XXXXXX.XXX On Behalf Of Maloney, Michael
> Sent: Monday, August 15, 2005 3:21 PM
> To: cygwin@XXXXXX.XXX
> Subject: RE: problem running tcl/expect when it lives remotely

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> > Looks like the script cannot find its-self. It's failing at:
> > exec $ARTS_EXPECT -n -N "$0" "$@"
> >
> > Log:
> > $ P:/lemon/automation/WAM/FIM/FARTS/utils/run_remote_cmds
> > + TCL_LIBRARY=C:/cygwin/usr/share/tcl8.4/init.tcl
> > + export TCL_LIBRARY
> > + LD_LIBRARY_PATH=C:/cygwin/lib/libtcl84.a
> > + export LD_LIBRARY_PATH
> > + C:/cygwin/bin/expect -n -N P:/lemon/automation/WAM/FIM/FARTS/utils/run_remote_cmds
> > couldn't read file "P:/lemon/automation/WAM/FIM/FARTS/utils/run_remote_cmds": no such file or directory
> >
> > This doesn't seem right at all.
>
> Hi, Is this issue good enough for a bug? I'm only seeing this when
> running the script on a mounted drive.

A workaround for this issue could be something like

exec "$ARTS_EXPECT" -n -N "`cygpath -u "$0"`" "$@"

(note also the quotes around $ARTS_EXPECT -- it may contain spaces).

As for why this is happening, perhaps you could look at what the path
conversion produces for this -- browsing through the output of "strace"
should be instructive.  Please don't post that output, though...
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]