|
The .profile file itself is not executed when the CMD parameter is specified as other than *NONE. See http://publib.boulder.ibm.com/iseries/v5r1/ic2924/info/rzahz/commands.htm which states: "Note that qsh does not run any profile files when started to run a command." HTH, Gary > -----Original Message----- > From: java400-l-bounces@xxxxxxxxxxxx > [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of McNeal, John > Sent: Thursday, July 03, 2003 11:43 AM > To: 'java400-l@xxxxxxxxxxxx' > Cc: Ryan, Carol > Subject: Problems with QSH and running the environment script > in the .profile > > > We have a shell script that is using exported variables. > Our .profile file is setting up the path correctly. It is > also setting the ENV variable to execute a shell script that > is exporting variables used in other shell scripts. If we > start QSH from the command line with no parms, the shell > script in the ENV variable executes, and our exported variables are > available to the shell script that we run in QSH. However, > if we call QSH > passing the qualified path to the shell script we want to > execute, it appears that the ENV script defined in our > .profile is not being executed. There seems to be a > difference in how QSH runs when running QSH without a parm > interactively, and how it works when trying to run a shell > script from a CL program. > > John McNeal > CARE Development > Work - 678-893-1739 > Cell - 770-653-8121 > Interactive page - jmcneal@xxxxxxxxxxxxxx > > > _______________________________________________ > This is the Java Programming on and around the iSeries / > AS400 (JAVA400-L) mailing list To post a message email: > JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change > list options, > visit: http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/java400-l. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.