>>echo "id" > /tmp/sucommandfile
>>su < /tmp/sucommandfile
>>
>>This will show uid=0, because it is the sub shell (uid=0), which is reading 
>>from /tmp/sucommandfile as if it >was stdin, and execute the commands found 
>>therein.
>>
>Did this work for you on z/OS?  Looking for alternatives on a Linux system
>(I haven't su on z/OS):




Yes, it does indeed. I don't have su right neither but I asked a colleage who 
has to verify for me (on z/OS V2.1)


--
Peter Hunkeler



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to