Re: I am missing something basic with bash scripting.

2007-09-07 Thread Larry Ploetz
John Summerfield wrote: People here have been doing arithmetic using $(()) which is fine, but only does integers. Sometimes one wants a decimal|floating point, so this can often be used: 06:55 [EMAIL PROTECTED] ~]$ echo 'scale=4;(14595.470+200.00)/4331.00' | bc 3.4161 06:55 [EMAIL PROTECTED] ~

Re: Question about SSH and losing Host Key with zLINUX (RH)

2007-09-07 Thread Marcy Cortes
I just had a problem where I had a blank character following my hostname in a ssh command (in xargs). It would always report the fingerprint as being wrong and add another. Then a subsequent retry of the command would find the first one and fail that it didn't match. Delete all the lines associa

Re: Question about SSH and losing Host Key with zLINUX (RH)

2007-09-07 Thread John Summerfield
Fargusson.Alan wrote: I once had two entries for one host in .ssh/know_hosts. This caused something similar to what you describe. s/_/n_/ That shouldn't cause failure, I think I've done that. I believe I always got a warning. Two IP addresses associated with a host ("host www.ibm.com.au") al

Re: I am missing something basic with bash scripting.

2007-09-07 Thread John Summerfield
James Melin wrote: I hadn't known about the $(...) function either until yesterday. So I've learned MANY interesting tricks just by asking that simple question (many thanks to everyone). I have hated the back-tik thing as well as it's really inelegant however it was all I knew. Add this one

Re: Adding dasd with Red Hat

2007-09-07 Thread Bennie Hicks
FYI, RHEL modprobe.conf vs. modules.conf with zipl changed between v3 & v4 Bauer, Bobby (NIH/CIT) [E] wrote: Very close. The dasd= parm is in /etc/modprobe.conf, not /etc/zipl.conf. Brought the dasd online in /sys/bus/ccw/drivers/dasd-eckd and this gave me the device name to use in the dasdfm

Re: I am missing something basic with bash scripting.

2007-09-07 Thread Larry Ploetz
I wrote: larry$ bash -c 'set -x; list="a|b|c"; t=a; eval "case $t in ( $list ) echo one;; b ) echo two;; esac' Not sure if anyone's interested in this technique, but if you do try the above, it won't work -- some email client/server and/or copy-and-paste messed it up. It should be: |bash -c

Re: Layer 2 - (was Re: VSwitch and IPv6)

2007-09-07 Thread Marcy Cortes
Yay!! It works it works it works! Thank you Alan!!! I'll buy you and Jay a beer in San Antonio! Your bonus points are in the mail too. Marcy "This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you mu

Re: zfcp HBA API library

2007-09-07 Thread Mark Post
>>> On Fri, Sep 7, 2007 at 5:23 AM, in message <[EMAIL PROTECTED]>, MAYER Andreas <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to get san_disc from IBM Developerworks on SLES9 (kernel > 2.6.5-7.282-s390x) working > (http://www-128.ibm.com/developerworks/linux/linux390/useful_add-ons_hba >

Re: Question about SSH and losing Host Key with zLINUX (RH)

2007-09-07 Thread Mark Post
>>> On Fri, Sep 7, 2007 at 12:01 PM, in message <[EMAIL PROTECTED]>, "Chaplin, James" <[EMAIL PROTECTED]> wrote: > We are in the process of installing Oracle RAC on zLinux, and our Oracle > programmer is having a problem with the SSH failing due to the Host Key > changing, causing the session to f

Re: Question about SSH and losing Host Key with zLINUX (RH)

2007-09-07 Thread Fargusson.Alan
I once had two entries for one host in .ssh/know_hosts. This caused something similar to what you describe. -Original Message- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of Chaplin, James Sent: Friday, September 07, 2007 9:02 AM To: LINUX-390@VM.MARIST.EDU Subject: Question

Question about SSH and losing Host Key with zLINUX (RH)

2007-09-07 Thread Chaplin, James
We are in the process of installing Oracle RAC on zLinux, and our Oracle programmer is having a problem with the SSH failing due to the Host Key changing, causing the session to fail. zLinux (Red Hat) appears to be issuing a new fingerprint with the key between sessions. The programmer does not exp

Re: I am missing something basic with bash scripting.

2007-09-07 Thread Adam Thornton
On Sep 6, 2007, at 11:29 PM, John Summerfield wrote: Adam Thornton wrote: Hey, can we digress a little, and talk about Very Large Services, Hardware, and Software Companies that *really* ought to know better, who actually don't appear to know that the things after the "http:" are forward, rat

Re: zfcp HBA API library

2007-09-07 Thread Romanowski, John (OFT)
SLES9 SP3, my san_disc is 1.36 and san_disc -c PORT_LIST works in my environment, an IBM SVC providing scsi LUNs. This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only f

Routing on IPv6

2007-09-07 Thread Scully, William P
With the guidance this group has offered I've seemed to get an IPv6 network largely working. One last challenge is setting the routing. Advice on what I have wrong here: linuxWPS:~ # route -A inet6 add 2000::/3 gw FD00:7A06:0A20:0100::::0001 dev eth1 SIOCADDRT: Invalid argument Su

Re: I am missing something basic with bash scripting.

2007-09-07 Thread Edmund R. MacKenty
On Thursday 06 September 2007 18:09, Stricklin, Raymond J wrote: >> I would, however, use -e instead of -f, because the system >> name is probably a directory, not a plain file. > >indeed, then why not use -d ? Because -e allows the script to neither know nor care what type of file is there, just

Re: Fedora-DS on Linux for SYstem z

2007-09-07 Thread Brad Hinson
On Fri, 2007-09-07 at 07:19 +0800, John Summerfield wrote: > Massimiliano Belardi wrote: > > Hi Guys, > >does anybody know if Fedora-DS is included on RedHat for Linux > > distribution? Anybody tryied to compile it from source to System z > > platform? > > Thanks > > Max > > I did a bit of digg

Re: I am missing something basic with bash scripting.

2007-09-07 Thread James Melin
I hadn't known about the $(...) function either until yesterday. So I've learned MANY interesting tricks just by asking that simple question (many thanks to everyone). I have hated the back-tik thing as well as it's really inelegant however it was all I knew. -J Adam Thornton <[

Re: VSwitch and IPv6

2007-09-07 Thread Alan Altmark
On Friday, 09/07/2007 at 01:40 EDT, Marcy Cortes <[EMAIL PROTECTED]> wrote: > This is all confusing to me - this layer 2/3 stuff. It was said to be not > allowed on the same card. Then not on the same port? Now OK on the same > port (given I have the latest and greatest z9 stuff, that's easy -

Betr.: Re: VSwitch and IPv6

2007-09-07 Thread Pieter Harder
I will leave the more complex L2/L3 question to someone more enlightened than me. But I am in the clear about Link Aggregation (I wasn't until recently, but support straightened me out) LA requires exlusivity, meaning ONE triplet in ONE lpar having access, an nothing else. Which is not as bad

zfcp HBA API library

2007-09-07 Thread MAYER Andreas
Hello, I'm trying to get san_disc from IBM Developerworks on SLES9 (kernel 2.6.5-7.282-s390x) working (http://www-128.ibm.com/developerworks/linux/linux390/useful_add-ons_hba api.html). Currently I'm using version 1.4 and am not able to list the configured target devices with PORT_LIST, other comm