delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/24/07:10:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: <435CC0F5.2000906@equate.dyndns.org>
Date: Mon, 24 Oct 2005 12:09:41 +0100
From: Chris Taylor <chris AT equate DOT dyndns DOT org>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Debian Thunderbird 1.0.7 (X11/20051010)
MIME-Version: 1.0
To: zzapper <david AT tvis DOT co DOT uk>
CC: cygwin AT cygwin DOT com
Subject: Re: When are Windows Short Path Names required
References: <gf4ll19t24s5el791n26rudlum24i066ot AT 4ax DOT com> <lebnl1thgfncfg24fmc959nm75o9jtcpp7 AT 4ax DOT com> <435C2A4A DOT C4D58EA5 AT dessent DOT net> <occpl1lckdvle5f09o1vl4a5s0c2vk5hic AT 4ax DOT com>
In-Reply-To: <occpl1lckdvle5f09o1vl4a5s0c2vk5hic@4ax.com>
X-IsSubscribed: yes

zzapper wrote:
> On Sun, 23 Oct 2005 17:26:50 -0700,  wrote:
> 
> 
>>zzapper wrote:
> 
> 
>>Sometimes it can be hard, especially when you are dealing with both
>>Cygwin and non-Cygwin programs, because the quoting rules differ.  But
>>it is always possible, and I can't believe that there exists a situation
>>where you are actually forced to use the short filename.  If you have
>>one, post it.
>>
>>Brian
> 
> 
> See script below sja.exe is actually in program files, my kludge below was to use a mount (rather
> than the short name)
> 
> (sja.exe is SQLYOG Job Agent)
> 
> dirbackup="c:/backup/dosh/"
> 
> 
> eval filedate=$(date.exe '+%d%b%y')
> 
> ls -l c:/backup/dosh/doshautoexport.sql
> 
> sjaprog="/sqlyog/sja.exe"
> sjascript="c:/cygwin/usr/local/bin/sql/dosh-batch.xml"
> sjarun="$sjaprog $sjascript";
> $sjarun
> 
> 

Considering all this is doing is launching a statically located 
executable with a statically located script (xml) file, this seems 
overly complex..
Surely you could just do /cygdrive/c/Program\ Files/sqlyog/sja.exe 
c:/cygwin/usr/local/bin/sql/dosh-batch.xml ?
One question.. When you were trying with spaces.. Did you try escaping 
the \ ? (as in Program\\ Files)
I've found this to be necessary at times, though I can't remember an 
instance at the moment.
Does the command run from the console if you start it using the standard 
path?

Chris

-- 

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

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