Best regards,
*Jon Bathmaker,*
Senior z/OS Systems Programmer,
SYS1 Consulting Inc.
519-577-9661



On 5/15/2020 2:10 PM, Kirk Wolf wrote:
Tip:   this is one way to trace your login profiles:

//SHELL   EXEC PGM=BPXBATCH,PARM='PGM /bin/sh -Lx'
//STDIN   DD DUMMY
//STDOUT  DD SYSOUT=*
//STDERR  DD SYSOUT=*
//



On Fri, May 15, 2020 at 12:27 PM Seymour J Metz <[email protected]> wrote:

I thought that ~/.profile runs after /etc/profile, and thus takes
precedence. So if you export $PATH, that's the value you should see.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf
of Jon Bathmaker [[email protected]]
Sent: Friday, May 15, 2020 1:21 PM
To: [email protected]
Subject: BPXBATCH . . . odd PATH

Hi All,

When I run a BPXBATCH job using this:
STDPARM  SH echo $PATH;
           su
I get the following results which imply that when the shell is invoked
for the Superuser it's using an old path that it found . . .
somewhere.   The PATH in STDOUT came from my .profile.   The profile in
STDERR does not match the PATH from /etc/profile and there is no
etc/suid_profile. So where *is* he getting that bad PATH?   Any help
would be much appreciated.  Thanks.

STDERR /bin:/usr/lpp/java/J1.4_64/bin/:/u/#T95JXB/scripts: FSUM7351 not
found
STDOUT /bin/:/usr/sbin/:/usr/lpp/java/J8.0_64/bin/:/u/#T95JXB/scripts/


Best regards,

Jon Bathmaker

z/OS Systems Programmer

519-577-9661


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to