Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="iso-8859-1"
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@ethz.ch>
To: <cygwin@cygwin.com>
Content-Transfer-Encoding: 8bit
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/


