Re: Which user env. variable tell me that it is in "s u - " mode ?
> > > > "echo $SHLVL" returns always "1" after a "su - ...", but another value > > after a "su ..." (without th dash). I thought, this was what you would like > > to see. > > > > There are several mechanism, to distinguish between the primary login shell > > and a "su ..." shell: > > I for one don't see why that might be useful:-) > To find out if you use the original environment or the environment of the SUed user. Regards Hubert -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Which user env. variable tell me that it is in "s u - " mode ?
Mario, I fear, I misunderstood your question (or you misunderstood my answer ;-) ) "echo $SHLVL" returns always "1" after a "su - ...", but another value after a "su ..." (without th dash). I thought, this was what you would like to see. There are several mechanism, to distinguish between the primary login shell and a "su ..." shell: 1. "ps -f" $ ps -f UIDPID PPID C STIME TTY TIME CMD hubert8163 8162 0 06:58 pts/200:00:00 -bash hubert 23237 8163 0 08:54 pts/200:00:00 ps -f $ su - root # ps -f UIDPID PPID C STIME TTY TIME CMD root 23567 8163 0 08:56 pts/200:00:00 /bin/su - root 23569 23567 1 08:56 pts/200:00:00 -bash root 23602 23569 0 08:56 pts/200:00:00 ps -f 2. "logname" vs. "id" # logname hubert # id uid=0(root) gid=0(root) groups=0(root) Hope this helps. Regards Hubert > -Ursprüngliche Nachricht- > Von: "Marco Bosisio" > Gesendet: 03.03.09 14:00:17 > An: LINUX-390@VM.MARIST.EDU > Betreff: Re: Which user env. variable tell me that it is in "s u - " mode ? > Hi Hubert, > your suggestion works fine running for nested scripts, I created 3 > script testa -> testb -> testc like this : > > lx1iard0:~ # cat testa > #!/bin/bash > echo "testa => SHLVL="$SHLVL > sh /root/testb > exit > > > lx1iard0:~ # echo $SHLVL > 1 > > lx1iard0:~ # sh testa > testa => SHLVL=2 > --testb => SHLVL=3 > testc => SHLVL=4 > > > But the variable $SHLVL is always 1 after a "su - " : > > it32...@lx1iard0:~> echo $SHLVL > 1 > it32...@lx1iard0:~> su - > Password: > lx1iard0:~ # echo $SHLVL > 1 > lx1iard0:~ # > > > I customized the profile.local and it launch a script_xxx at login. When > use 'su - ' I would like that the new user does not execute the > script_xxx again. > > > Cordiali saluti / Best regards > > Marco Bosisio IBM Italia S.p.A. > > > > > > > > Hubert Kleinmanns > Sent by: Linux on 390 Port > 03/03/2009 11.32 > Please respond to > Linux on 390 Port > > > To > LINUX-390@VM.MARIST.EDU > cc > > Subject > Re: Which user env. variable tell me that it is in "s u - " mode ? > > > > > > > Hi Marco, > > try: > > echo $SHLVL > > The value is incremented for each new sub shell - so it will be "1" for > login shells (which you get with "su - ..." > > Regards > Hubert > > > > -Ursprüngliche Nachricht- > > Von: "Marco Bosisio" > > Gesendet: 03.03.09 11:12:04 > > An: LINUX-390@VM.MARIST.EDU > > Betreff: Which user env. variable tell me that it is in "su - " mode > ? > > > > Hi, > > do you know wich user environment variable I have to test (executing > > a bash script) to know when I am in "su -" (switch user mode) ? > > > > > > Reading variables provided by "env" command then testing $TERM I > > am able to know if not a Linux terminal : > > .. > > ... > > # We can only execute on a terminal SSH / Telnet , not executed if > > secondary console Linux/zVM > > if [[ "$TERM" != "xterm" ]] ; then exit > > fi > > .. > > > > I would like to do the same when the script is executed in a user > > logged in "su - " mode... > > > > Thanks in advance. > > > > Cordiali saluti / Best regards > > > > Marco BosisioIBM Italia S.p.A. > > > > -- > > For LINUX-390 subscribe / signoff / archive access instructions, > > send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or > visit > > http://www.marist.edu/htbin/wlvindex?LINUX-390 > > > > -- > Hubert Kleinmanns > Beratung / Schulung / Projektleitung > > Chairman der WG "WebSphere MQ and Business Integration" in der GSE, deutsche > Region. > > Tel.: +49 (0) 60 78 / 7 12 21 > Fax: +49 (0) 60 78 / 7 12 25 > Mobil: +49 (0) 178 / 6 97 22 54 > Web: www.kleinmanns.eu > GSE: www.gsenet.de > > -- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or > visit > http://www.marist.edu/htbin/wlvindex?LINUX-39
Re: Which user env. variable tell me that it is in "s u - " mode ?
Hi Marco, try: echo $SHLVL The value is incremented for each new sub shell - so it will be "1" for login shells (which you get with "su - ..." Regards Hubert > -Ursprüngliche Nachricht- > Von: "Marco Bosisio" > Gesendet: 03.03.09 11:12:04 > An: LINUX-390@VM.MARIST.EDU > Betreff: Which user env. variable tell me that it is in "su - " mode ? > Hi, > do you know wich user environment variable I have to test (executing > a bash script) to know when I am in "su -" (switch user mode) ? > > > Reading variables provided by "env" command then testing $TERM I > am able to know if not a Linux terminal : > .. > ... > # We can only execute on a terminal SSH / Telnet , not executed if > secondary console Linux/zVM > if [[ "$TERM" != "xterm" ]] ; then exit > fi > .. > > I would like to do the same when the script is executed in a user > logged in "su - " mode... > > Thanks in advance. > > Cordiali saluti / Best regards > > Marco BosisioIBM Italia S.p.A. > > -- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > -- Hubert Kleinmanns Beratung / Schulung / Projektleitung Chairman der WG "WebSphere MQ and Business Integration" in der GSE, deutsche Region. Tel.: +49 (0) 60 78 / 7 12 21 Fax: +49 (0) 60 78 / 7 12 25 Mobil: +49 (0) 178 / 6 97 22 54 Web: www.kleinmanns.eu GSE: www.gsenet.de -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: vmcpi command
James, just add ″modprobe vmcp″ to the file /etc/rc.local Regards Hubert > -Ursprüngliche Nachricht- > Von: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Gesendet: 03.06.08 15:58:28 > An: LINUX-390@VM.MARIST.EDU > Betreff: Re: vmcpi command > Hi, James. > > The VMCP command is documented in the IbM publication "Device drivers, > Features, and Commands" (sC33-8289). You can grab a copy of the latest > edition here: > http://www.ibm.com/developerworks/linux/linux390/october2005_documentation.h > tml > > Have a good one. > > DJ > > Original Message: > - > From: CHAPLIN, JAMES (CTR) [EMAIL PROTECTED] > Date: Tue, 3 Jun 2008 09:51:25 -0400 > To: LINUX-390@VM.MARIST.EDU > Subject: vmcpi command > > > Has anyone used the vmcp command? And reference on how to set it up on > our zLinux systems. We are using RHEL 4.5 & 5 on zVM 5.3 LPARs. > > We have the man pages in place: > vmcp - send commands to the z/VM control program > but I get command not found when working with it. > > Can anyone point me to a good reference on setting this tool up? > > James Chaplin > Systems Programmer, MVS, zVM & zLinux > Base Technologies, Inc > (703) 921-6220 > > > > > mail2web.com - Microsoft® Exchange solutions from a leading provider - > http://link.mail2web.com/Business/Exchange > > -- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > -- Hubert Kleinmanns Beratung / Schulung / Projektleitung Chairman der WG "WebSphere MQ and Business Integration" in der GSE, deutsche Region. Tel.: +49 (0) 60 78 / 7 12 21 Fax: +49 (0) 60 78 / 7 12 25 Mobil: +49 (0) 178 / 6 97 22 54 Web: www.kleinmanns.eu GSE: www.gsenet.de -- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: What distribution and why?
Phil, thanks for the explanation of the phrase I used. You are right, I meant "Can you be more specific about the issue you found with MQ and SUSE?" and was slightly surprised about the answers. Hubert > -Ursprüngliche Nachricht- > Von: Linux on 390 Port > Gesendet: 16.04.08 04:49:36 > An: LINUX-390@VM.MARIST.EDU > Betreff: Re: What distribution and why? > > "Evans, Kevin R" <[EMAIL PROTECTED]> wrote: > >As I said, though, I don't have a problem...but thanks for trying to > >help! > > I believe the confusion here is due to what looked like a slightly idiomatic > American usage -- "What EXACTLY is your problem???" -- which translates to > "Hey, jerk, what is wrong with you? Are you stupid or what?". I'd bet large > sums that Hubert Kleinmanns didn't mean it that way, and was instead asking, > "Can you be more specific about the issue you found with MQ and SUSE?" > > Once again, infernal English leads to what could (and would have, on most > lists!) been an international incident. > > And once again, the professionalism and courtesy of the VM and z/Linux > community avoids bloodshed... > > ...phsiii (Feeling proud to be a Vmer today) > > -- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > -- Hubert Kleinmanns Beratung / Schulung / Projektleitung Chairman der WG "WebSphere MQ and Business Integration" in der GSE, deutsche Region. Tel.: +49 (0) 60 78 / 7 12 21 Fax: +49 (0) 60 78 / 7 12 25 Mobil: +49 (0) 178 / 6 97 22 54 Web: www.kleinmanns.eu GSE: www.gsenet.de -- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: What distribution and why?
Kevin, maybe I misunderstood your mail, but you wrote "We use RHEL and if I remember correctly (I don't work on the zLinux project directly) it was to do with RHEL compatibility with some other software at the time we started (several years ago). Maybe it was MQ, ...". I am working several years with MQ and I only wanted to understand, what may be different on SUSE and RH running MQ. But now I think, this question will not be answered here. Regards Hubert > -Ursprüngliche Nachricht- > Von: Linux on 390 Port > Gesendet: 14.04.08 15:06:56 > An: LINUX-390@VM.MARIST.EDU > Betreff: Re: What distribution and why? > > David, > > I didn't think that people weren't playing nice. But, your observation > about the megalith is right on. We don't use Websphere, per se, here but > we do use MQ Series queues and adapters running under CICS to manipulate > the queues. I'm not sure why Hubert thought I had a problem, maybe > didn't read the email from the bottom? > > I agree with the spanking part . > > Regards, > > Kevin > > -Original Message- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of > David Boyes > Sent: Monday, April 14, 2008 8:48 AM > To: LINUX-390@VM.MARIST.EDU > Subject: Re: What distribution and why? > > > what's exactly is your problem? > > Easy, easy... this isn't IBM-MAIN or LKML. Play nice. > > > Last question: What do you mean with "MQ only"? > > Probably has to do with the recent (and IMHO not beneficial) renaming of > MQ to be part of the Websphere megalith. Not everyone got the memo on > the new name, and the phrase "Websphere MQ" commonly still parsed as > Websphere + MQ, not just the pure MQ we used to have to cope with. IBM: > is it really beneficial to push things that you've built a name for into > association with things that pretty much aren't more than peripherally > related, and have some negative connotations as well? *sigh* Some things > normal mankind just isn't meant to know, I guess. Another example of > marketing wonks doing something to make understanding what we do more > difficult. Methinks a good spanking is in order. > > -- db > > -- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or > visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > > ------ > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > -- Hubert Kleinmanns Beratung / Schulung / Projektleitung Chairman der WG "WebSphere MQ and Business Integration" in der GSE, deutsche Region. Tel.: +49 (0) 60 78 / 7 12 21 Fax: +49 (0) 60 78 / 7 12 25 Mobil: +49 (0) 178 / 6 97 22 54 Web: www.kleinmanns.eu GSE: www.gsenet.de -- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: What distribution and why?
Hi, > what's exactly is your problem? I just want to understand, what may be going wrong and - possibly - provide a solution. > Not everyone got the memo on the new name, and the phrase > "Websphere MQ" commonly still parsed as Websphere + MQ. I know, but there are many other queuing products and I wanted to clarify, that we are talking about the IBM product. When "MQ" was renamed to "WebSphere MQ" I found a mail in a mailing list, where somebody made a guess, in the future IBM would have only one product, which is either name "WebSphere for Tivoli" or "Tivoli for WebSphere" :-D Back to the subject: I would prefer SUSE, because I am working since several years with it - starting with version 2.0 or so. I do not think, that SUSE is really better or worse than RH or Debian or Marist or whatever - but I like it ;-). Regards Hubert > -Ursprüngliche Nachricht- > Von: Linux on 390 Port > Gesendet: 14.04.08 14:50:53 > An: LINUX-390@VM.MARIST.EDU > Betreff: Re: What distribution and why? > > > what's exactly is your problem? > > Easy, easy... this isn't IBM-MAIN or LKML. Play nice. > > > Last question: What do you mean with "MQ only"? > > Probably has to do with the recent (and IMHO not beneficial) renaming of > MQ to be part of the Websphere megalith. Not everyone got the memo on > the new name, and the phrase "Websphere MQ" commonly still parsed as > Websphere + MQ, not just the pure MQ we used to have to cope with. IBM: > is it really beneficial to push things that you've built a name for into > association with things that pretty much aren't more than peripherally > related, and have some negative connotations as well? *sigh* Some things > normal mankind just isn't meant to know, I guess. Another example of > marketing wonks doing something to make understanding what we do more > difficult. Methinks a good spanking is in order. > > -- db > > -- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > -- Hubert Kleinmanns Beratung / Schulung / Projektleitung Chairman der WG "WebSphere MQ and Business Integration" in der GSE, deutsche Region. Tel.: +49 (0) 60 78 / 7 12 21 Fax: +49 (0) 60 78 / 7 12 25 Mobil: +49 (0) 178 / 6 97 22 54 Web: www.kleinmanns.eu GSE: www.gsenet.de -- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: What distribution and why?
Kevin, what's exactly is your problem? As I told we are working with WebSphere MQ without any problems on SLES10 and it worked before on SLES8 (we did not test it on SLES9). Possibly your own CICS adapters interfere with some other stuff on SUSE, which is not installed on RH. The WebSphere Message Broker comes with its own MQ queue manager, so maybe you did not remove everything properly before installing Websphere MQ (this could be a SUSE specifc issue, but I do not think so). Of course the packages which come with RH or SUSE may affect other applications. We had a problem using OpenREXX and WebSphere Application Server on SLES9 ... Last question: What do you mean with "MQ only"? Regards Hubert > -Ursprüngliche Nachricht- > Von: Linux on 390 Port > Gesendet: 14.04.08 13:58:03 > An: LINUX-390@VM.MARIST.EDU > Betreff: Re: What distribution and why? > > Hubert, > > No, it doesn't. > > We do use MQ "only" and have our own CICS adapters to directly manipulate the > queues. From talking to one of the zLinux developers this morning, he is not > sure he remembers the exact reasons. Message Broker springs to mind because > we did "play" with that for a while before rejecting it for use here. The > other thing that he thought may have played into the equation is that the FBI > already used RH products on the desktop, so the support issue may have been > easier to deal with as there was an existing agreement with RH. > > The thing that this topic may have raised is that (at least back then) not > all products necessarily play with each other. I'm not sure whether that is > still true but wouldn't mind betting that it is. > > Regards, > > K > > -Original Message- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Hubert > Kleinmanns > Sent: Monday, April 14, 2008 6:59 AM > To: LINUX-390@VM.MARIST.EDU > Subject: Re: What distribution and why? > > Kevin, > > does "MQ" mean "WebSphere MQ"? > > We are working with WebSphere MQ on SUSE for several years and it works fine. > > Regards > Hubert > > > > -Ursprüngliche Nachricht- > > Von: Linux on 390 Port > > Gesendet: 14.04.08 12:36:08 > > An: LINUX-390@VM.MARIST.EDU > > Betreff: Re: What distribution and why? > > > > > > We use RHEL and if I remember correctly (I don't work on the zLinux project > > directly) it was to do with RHEL compatibility with some other software at > > the time we started (several years ago). Maybe it was MQ, although not > > sure. If it is important I can ask the folks that do work on it. > > > > K > > > > -Original Message- > > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of RPN01 > > Sent: Thursday, April 10, 2008 10:35 AM > > To: LINUX-390@VM.MARIST.EDU > > Subject: What distribution and why? > > > > We¹re looking at the costs and effort of converting our installation from > > SuSE SLES to RedHat RHEL on the zSeries, and I¹m wondering what others are > > running, and why they chose the particular distribution. All comments are > > welcome, on or off list; I just want to be sure we¹re not backing ourselves > > into the room¹s other corner > > > > I know this has been discussed before, but times change, and maybe a > > headcount is in order again. > > > > -- > > Robert P. Nix Mayo Foundation.~. > > RO-OE-5-55 200 First Street SW/V\ > > 507-284-0844 Rochester, MN 55905 /( )\ > > -^^-^^ > > "In theory, theory and practice are the same, but > > in practice, theory and practice are different." > > > > > > > > -- > > For LINUX-390 subscribe / signoff / archive access instructions, > > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit > > http://www.marist.edu/htbin/wlvindex?LINUX-390 > > > > -- > > For LINUX-390 subscribe / signoff / archive access instructions, > > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit > > http://www.marist.edu/htbin/wlvindex?LINUX-390 > > > > ------ > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > > -
Re: What distribution and why?
Kevin, does "MQ" mean "WebSphere MQ"? We are working with WebSphere MQ on SUSE for several years and it works fine. Regards Hubert > -Ursprüngliche Nachricht- > Von: Linux on 390 Port > Gesendet: 14.04.08 12:36:08 > An: LINUX-390@VM.MARIST.EDU > Betreff: Re: What distribution and why? > > We use RHEL and if I remember correctly (I don't work on the zLinux project > directly) it was to do with RHEL compatibility with some other software at > the time we started (several years ago). Maybe it was MQ, although not sure. > If it is important I can ask the folks that do work on it. > > K > > -Original Message- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of RPN01 > Sent: Thursday, April 10, 2008 10:35 AM > To: LINUX-390@VM.MARIST.EDU > Subject: What distribution and why? > > We¹re looking at the costs and effort of converting our installation from > SuSE SLES to RedHat RHEL on the zSeries, and I¹m wondering what others are > running, and why they chose the particular distribution. All comments are > welcome, on or off list; I just want to be sure we¹re not backing ourselves > into the room¹s other corner > > I know this has been discussed before, but times change, and maybe a > headcount is in order again. > > -- > Robert P. Nix Mayo Foundation.~. > RO-OE-5-55 200 First Street SW/V\ > 507-284-0844 Rochester, MN 55905 /( )\ > -^^-^^ > "In theory, theory and practice are the same, but > in practice, theory and practice are different." > > > > -- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > > -- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > -- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: NEW TOPIC -- Workload move from z/OS to z/Series Linux
Hi Alan, my actual customer runs Domino-, TSM- and WebSphere Application Servers as well as DB2 on Linux for System z. Regards Hubert > -Ursprüngliche Nachricht- > Von: Linux on 390 Port > Gesendet: 01.02.08 03:08:50 > An: LINUX-390@VM.MARIST.EDU > Betreff: NEW TOPIC -- Workload move from z/OS to z/Series Linux > > My original topic was completely hijacked by disucssion of ZIIPS and > ZAAP so I am going to try again. > > Please no more ZIIPs and ZAAPs. (Frankly, my dear, ...) > > Has anyone actually moved workload from z/OS to z/Linux? > > So far I got only one response, someone who moved TSM from z/OS to z/Linux. > > I got some good suggestions. Thank you! > > Someone asked what we run on z/OS. I don't know. It seems a bit strange that a > VM system programmer is being asked to do this. I will no doubt find out one > of > these days. > > But so far I have to report that no one is doing this except one shop. > > Alan Ackerman > Alan (dot) Ackerman (at) Bank of America (dot) com > > -- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > -- Hubert Kleinmanns Beratung / Schulung / Projektleitung Chairman des Arbeitskreises MQ-Series in der GSE, deutsche Region. Tel.: +49 (0) 60 78 / 7 12 21 Fax: +49 (0) 60 78 / 7 12 25 Mobil: +49 (0) 178 / 6 97 22 54 Web: www.kleinmanns.eu GSE: www.gsenet.de -- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390