Open Text Corporation Press Room | Careers | Investors  
Enterprise Content Management
News | Company | Open Text | Hummingbird Connectivity  
Home > Exceedusers > Jul2004 >  Re: Setting environment variables when using the REXEC start method Print View   Contact Me   
Site Tools
My Notes
My Menu Add this page to My Menu
Enterprise Content Management

 

From: Dave Pelletier ( )
Date: Fri Jul 30 2004 - 09:07:38 EDT


By default the rexec protocol won't source the .profile.

It depends on how you are starting the applications. Some Xclients such as
xterm support the -ls switch. This creates a login shell which does source
the profile.

Using xterm as an example you could also try the following:

source .bash_profile ; /usr/X11R6/bin/xterm -display @d&

Dave Pelletier

-----Original Message-----
From: Title: ExceedUsers [mailto: ] On Behalf Of
Nigel Pain
Sent: Thursday, July 29, 2004 5:52 AM
To:
Subject: [EXCEEDUSERS] Setting environment variables when using the REXEC
start method

****************************************************************************
***************************************************************************
This email and any files transmitted with it are intended solely for the use
of the individual or entity to whom they are addressed.
****************************************************************************
***************************************************************************

This may be more of a UNIX question than an Exceed one. We have people using
Exceed to run SAS software on a Solaris 8 machine, working in various
different areas and consequently using different Xstart files. We have now
installed an ODBC driver to enable SAS to connect to ODBC compliant
databases but this requires that certain environment variables are set.

Because we are using REXEC as our start method, the /etc/profile and
$HOME/.profile scripts are not run and so it makes no difference defining
the environment variables in them. Equally, we could include the definitions
in the Xstart command line but, as there are so many different Xstart files
being used, we can't guarantee that we'll pick them all up.

Is there any way of ensuring that environment variables are set by default
in an REXEC session?

***************************************************

Nigel Pain

Scottish Executive

Analytical Services Team

Victoria Quay

EDINBURGH

EH6 6QQ

UK

Tel +44 131 244 7237

Mob. +44 7795 618362

Mailto:
<mailto: >

Website: http:\\www.scotland.gov.uk <http://www.scotland.gov.uk/>

The original of this email was scanned for viruses by the Government Secure
Intranet (GSi) virus scanning service supplied exclusively by Energis in
partnership with MessageLabs.

On leaving the GSi this email was certified virus-free



This archive was generated by hypermail 2b29 : Sat Jul 31 2004 - 23:54:02 EDT