delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/08/23:13:53

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:to:message-id:in-reply-to
:subject:mime-version:content-type:content-transfer-encoding; q=
dns; s=default; b=MsUu4iSy0hZDbro/gx0vffXV+Ht0VY7IdWwQJdzklpwg95
GVPK+5nG5qQ9YePRrDujUt6nNUHwuZ+8cze0ULgg/nJW14JtRrfC2l8cRVMAsFg6
IRRuv52MnsnJwqfXSVTg9UUq6KFy7NsEIvYpdgNrS0UJkJili93oLObqX9EtU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:to:message-id:in-reply-to
:subject:mime-version:content-type:content-transfer-encoding; s=
default; bh=l3vo1+LftcvwMtNH5RYUPx5DgqI=; b=FVGzxv+kvaXhrXQzt1Cd
fpXKKA0uZrUXvPttQ7OTaCwpTr0S3cdQZu5hPUL8yfYTUHyqPnrZWCAIA8b+elLL
un4SoDlBITEwIaZpbtYO5Xmn0q1nlSXL8axhKI7QlxUyRVpXuFI5y369qYc5JVaS
iHeJWD1QU+1T0uk4nFhAdbE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_40,KHOP_THREADED,RP_MATCHES_RCVD autolearn=ham version=3.3.1
Date: Wed, 8 May 2013 22:13:30 -0500 (CDT)
From: BJ Quinn <bjquinn AT seidal DOT com>
Reply-To: BJ Quinn <bj AT placs DOT net>
To: cygwin AT cygwin DOT com
Message-ID: <1911165825.42500.1368069210455.JavaMail.root@seidal.com>
In-Reply-To: <1350615253.42498.1368069188761.JavaMail.root@seidal.com>
Subject: parentheses in environment variable name
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r493DnhA000861

I have the problem described here - http://stackoverflow.com/questions/3735922/issue-with-oledbconnection-open-when-running-as-a-service

Basically, I've installed cygwin plus openssh for the purpose of remotely logging into my windows machine from a linux machine over ssh to run an executable on the windows machine.

My first problem was that my original executable I was trying to run (written in FoxPro) insisted on attempting to create a GUI window even though there was no desire to have visual feedback or user interaction, so attempts to call the executable through cygwin resulted in a hung command in the shell.  It appears that FoxPro can't actually create an executable that doesn't also create a GUI window.  After reading lots of comments about services interacting with the desktop and limitations that MSFT has put on recent versions of windows with respect to that feature, I abandoned this approach.

I decided that perhaps I could accomplish the same thing I was trying to accomplish with the FoxPro executable with a simple C# console application that would not attempt to create a GUI (with an oledb connection to the FoxPro data I'm trying to access).  The C# program works well outside of cygwin, but the cygwin+openssh shell (apparently) doesn't contain lots of the environment variables that .NET expects, so it blows up opening the oledb connection with some complaint about MDAC 2.6 or greater not being installed.  It's been a while since I've had to install MDAC, so I knew that was a false error message.  Google-fu (and the link I referenced above) suggests that perhaps some environment variables are missing, which of course is true.  I understand the logic for not creating said environment variables, and although I tend to disagree with that logic, frankly I just don't know enough about it and I'm probably biased due to banging my head against this particular problem.

Anyway, at least one suggestion I found was that my problem may be caused by the CommonProgramFiles(x86) environment variable needing to be set to 'C:\Program Files (x86)\Common Files'.  So, can anyone suggest how to set an environment variable whose VARIABLE NAME (not just the VALUE) contains parentheses?!?  The standard backslash escape character doesn't appear to work in this scenario.  That, or perhaps I'm on the wrong track altogether.  I'm open to any suggestions.

Thanks!

-BJ Quinn

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


- Raw text -


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