in...@gmail.com
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Peter Hunkeler
> Sent: Tuesday, December 29, 2015 11:34 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: [Bulk] AW: Re: BPXBATCH "SH ...; su; p
>>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 L
>does not do what you think it does ...
>
>or, in the words of Inigo Montoya ..
>
>you keep using that command. I do not think it means what you think it means
>...
I don't get your point, I'm afraid.
--
Peter Hunkeler
---
In
<29b16432403d6c45a9bee5f0302d191779ba2...@vss-exchmb1.sfg.corp.LOCAL>,
on 12/29/2015
at 06:24 PM, "Pommier, Rex" said:
>The only thing you're missing on Chris' response was the movie
>reference.
Movie? The book came first.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
ISO posi
ans".
Rex
-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf
Of John McKown
Sent: Tuesday, December 29, 2015 11:26 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: BPXBATCH "SH ...; su; pax ..." does not do what you think it does
(was:
On Tue, Dec 29, 2015 at 11:17 AM, Chris Hoelscher
wrote:
> does not do what you think it does ...
>
> or, in the words of Inigo Montoya ..
>
> you keep using that command. I do not think it means what you think it
> means ...
>
What am I missing on that. I'm always wanting to learn stuff. Espec
I know there are other ways. And there is sudo, but that is an add-on.My
intention was not to list all possible ways, but to point out that "...; su ;
othercmd..." will *not* run "othercmd" under uid=0. It seems to be a not so
uncommon missunderstanding.
--
Peter Hunkeler
-
.; su; pax ..." does not do what you
think it does (was: rsync anyone?)
On Tue, Dec 29, 2015 at 9:01 AM, Peter Hunkeler wrote:
>
>
> To run commands in a "su" shell environment, you have to write all the
> commands into a UNIX file first, and then call "su"
On Tue, Dec 29, 2015 at 9:01 AM, Peter Hunkeler wrote:
>
>
> To run commands in a "su" shell environment, you have to write all the
> commands into a UNIX file first, and then call "su" by redirecting stdin to
> that UNIX file.
>
>
> echo "id" > /tmp/sucommandfile
> su < /tmp/sucommandfile
>
>
On Tue, 29 Dec 2015 16:01:15 +0100, Peter Hunkeler wrote:
>
>To run commands in a "su" shell environment, you have to write all the
>commands into a UNIX file first, and then call "su" by redirecting stdin to
>that UNIX file.
>
>echo "id" > /tmp/sucommandfile
>su < /tmp/sucommandfile
>
>This will
> sh cd /u/zfs;su;pax -rwvCMX -p eW . /u/hfs
This does not do what you think it does. The pax command will run under the
initial uid and not with uid=o as you might hope. I recently explained this on
the RACF-L list as follows:
Starting in the initial shell process, most (shell) commands wil
11 matches
Mail list logo