delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/27/09:50:56

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
MIME-Version: 1.0
Subject: problem with starting programs via ssh / cannot see environment variable
Date: Wed, 27 Jul 2005 15:50:39 +0200
Message-ID: <E9D421793368D44FB81D3C438D300574CE16DD@EX5.d.ethz.ch>
From: "Giger Mathias" <mgiger AT ethz DOT ch>
To: <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j6RDoqol026780

Hi all,

I have a problem with starting programs via ssh. when logging in on to a xp host with cygwin everything works fine.
(browsing files etc.)

When I want to start a program requiring some environment variables from xp I run into troubles. The job is started
in the task manager, but the program cannot be run due to missing environment variables.

These are some e.v. that are shown:
$ export
declare -x ALLUSERSPROFILE="C:\\Documents and Settings\\All Users"
declare -x COMMONPROGRAMFILES="C:\\Program Files\\Common Files"
declare -x COMPUTERNAME="ORANGE26"
declare -x COMSPEC="C:\\WINDOWS\\system32\\cmd.exe"
declare -x CVS_RSH="/bin/ssh"
.
.
.
declare -x WINDIR="C:\\WINDOWS"

this is only a subset of all e.v. from xp (system -> environment variables)

for running e.g. ANSYS (a simulation program) some more e.v. are required which are properly defined in xp,
but cannot be seen via ssh. the correct list would have to look like:

$ export
declare -x ALLUSERSPROFILE="C:\\Documents and Settings\\All Users"
declare -x ANSYS81_DIR="C:\\Program Files\\Ansys Inc\\v81\\ANSYS"
declare -x ANSYS90_DIR="C:\\Program Files\\Ansys Inc\\v90\\ANSYS"
declare -x ANSYSLIC_DIR="C:\\Program Files\\Ansys Inc\\Shared Files\\Licensing"
declare -x ANSYS_SYSDIR="Intel"
declare -x BOOKSHELF="C:\\IFOR\\WIN\\BIN\\EN_US"
...etc

I can add this environment variables manually in a .bashrc file and then everything works fine, but this is not really the way
to go. (Copying environment variables is a rather ugly "hack")

Anyone an idea?

Best regards,
Mathias

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