Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: Cygwin List Message-Id: <6.2.1.2.0.20050727101947.03dc4ed0@pop.prospeed.net> Date: Wed, 27 Jul 2005 10:23:43 -0400 To: "Giger Mathias" , From: Larry Hall Subject: Re: problem with starting programs via ssh / cannot see environment variable In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 09:50 AM 7/27/2005, you wrote: >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? Yes, please read and follow all the suggested problem reporting guidelines outlined here: >Problem reports: http://cygwin.com/problems.html In the absence of this information, all folks on the list can do is guess what your environment is and what you're doing. In that vein, my WAG is that you're using pubkey authentication and these variables are not in the global environment. If that's true, then the two options you have are using password authentication or adding the variables you want to the global environment. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/