How to execute a shell script file expecting argument in unix from Mainframe JCL

Discussion about community tools that we make available for z/OS without support
go2prashant
Posts: 1
Joined: Mon Apr 03, 2017 5:27 am

How to execute a shell script file expecting argument in unix from Mainframe JCL

Postby go2prashant » Mon Apr 03, 2017 5:46 am

I am creating a JCL(Mainframe) to execute a shell file in a unix server and getting “sudo: pam_authenticate: Conversation error“.
I need your suggestion here to fix this.

Command in JCL(STPIPFIX is a parameter):

Please note this user(pwcwappd) has sudo access to run this command in JCL.
sudo su - pwcwappd -c /app/WCW0/prod/scripts/start.sh STPIPFIX

start.sh:

if [ $1 = "STPIPFIX" ]
then
nohup /app/WCW0/prod/STPIPFIX/STPIPFIX.sh &
fi

Log:

UNIVERR LOG

********************************* TOP OF DATA **********************************
sudo: no tty present and no askpass program specified
sudo: pam_authenticate: Conversation error
******************************** BOTTOM OF DATA ********************************

Please advise.

Prashant

Return to “z/OS Community Tools”

Who is online

Users browsing this forum: No registered users and 1 guest