W dniu 13.06.2023 o 22:56, Kurt J. Quackenbush pisze:
I put 'su' command before others, but it doesn't work.
Try piping the commands to su, like this:
//STEP EXEC PGM=BPXBATCH
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//STDPARM DD *
SH ;
echo "The mkdir a command runs as the job's userid";
mkdir a;
echo "The mkdir b command runs as superuser, if the userid is authorized";
echo "mkdir b" | su;
/*
That works! Thank you.
Thanks to all gentlemen, who answered.
Regards
--
Radoslaw Skorupka
Lodz, Poland
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN