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
Post Reply
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

Post by go2prashant »

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
Post Reply