Re: I am missing something basic with bash scripting.

2007-09-06 Thread John Summerfield
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, rather than back, slashes? Yeah. Got one of those *today

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Adam Thornton
On Sep 6, 2007, at 10:56 PM, John Summerfield wrote: David Boyes wrote: On 9/6/2007 4:31 PM, Edmund R. MacKenty wrote: Note that I'm using $(...) instead of backticks. Backticks are evil! But I'm curious: why are backticks evil? (I didn't know about the "$(command)" trick; I've been using b

Re: I am missing something basic with bash scripting.

2007-09-06 Thread John Summerfield
David Boyes wrote: On 9/6/2007 4:31 PM, Edmund R. MacKenty wrote: Note that I'm using $(...) instead of backticks. Backticks are evil! But I'm curious: why are backticks evil? (I didn't know about the "$(command)" trick; I've been using backticks for a long time. I learn something new every d

Re: VSwitch and IPv6

2007-09-06 Thread Marcy Cortes
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 - someone else gets to do that)? Example needed please. I'll give you a little pic

Re: VSwitch and IPv6

2007-09-06 Thread Alan Altmark
On Thursday, 09/06/2007 at 10:08 EDT, Robert J Brenneman <[EMAIL PROTECTED]> wrote: > Yep - you need Layer2 - Setup the vswitch like Alan mentioned. BUT: the osa > port can **not** support layer2 & layer3 at the same time. To the best of my knowledge, all L2-capable OSAs support mixed L2 and L3. H

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Larry Ploetz
Fargusson.Alan wrote: The problem is that bash takes cooked_list as a single token in the case statement. It matches the entire list of systems, and not each member of the list. I don't know of any way around this. You will probably need to do another for loop on raw_list and check for a ma

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Larry Ploetz
You could do something else entirely, like: larry$ a=a larry$ echo $list a|b|c larry$ [[ $list =~ $a ]] && echo hi || echo ho hi larry$ a=d larry$ [[ $list =~ $a ]] && echo hi || echo ho ho or [[ "$(ls /clamscan/servers)" =~ $target_system ]] && parm_1="valid" (assuming no system name is a sub

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Larry Ploetz
Mark Post wrote: If that doesn't help, then put a "set -x" right after the #!/bin/sh line, and send the output, along with the command invocation. or put "-x" on the shebang line: #! /bin/sh -x -- Carnegie Institution - At the Frontiers of Science Larry Ploetz Systems Administrator Carn

Re: I am missing something basic with bash scripting.

2007-09-06 Thread David Boyes
> On 9/6/2007 4:31 PM, Edmund R. MacKenty wrote: > > Note that I'm using $(...) instead of backticks. Backticks are evil! > But I'm curious: why are backticks evil? (I didn't know about the > "$(command)" trick; I've been using backticks for a long time. I learn > something new every day!) Some u

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread John Summerfield
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 digging around, and concluded that when it's released for RHEL it will be "Red Hat Direct

Re: I am missing something basic with bash scripting.

2007-09-06 Thread McKown, John
> -Original Message- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On > Behalf Of James Melin > Sent: Thursday, September 06, 2007 3:53 PM > To: LINUX-390@VM.MARIST.EDU > Subject: I am missing something basic with bash scripting. > > > I am trying to get away from hard coded server

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Larry Ploetz
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 ? ok r. Both good points -- use the operator best suited to the task. If you want to make *sure* it's a file, use -f; if di

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Adam Thornton
On Sep 6, 2007, at 2:56 PM, Eric Chevalier wrote: On 9/6/2007 4:31 PM, Edmund R. MacKenty wrote: Note that I'm using $(...) instead of backticks. Backticks are evil! The InList() function is slick; I like it! But I'm curious: why are backticks evil? (I didn't know about the "$(command)" tric

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Stricklin, Raymond J
> 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 ? ok r. -- For LINUX-390 subscribe / signoff / archive access instructions, send emai

Re: http://www.marist.edu/htbin/wlvindex?LINUX-390

2007-09-06 Thread Kielek, Samuel
>>or, of course, you could go the direct route: >> >>[[ -f /clamscan/servers/$target_system ]] && parm_1="valid" Yea, that's probably what I'd do. Although I think his path actually terminates with a directory since his comment said it was a list of mountpoints. In which case he'd want: [[ -d /c

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Eric Chevalier
On 9/6/2007 5:04 PM, Fargusson.Alan wrote: Because it is very hard to nest them. Ah hah! I'd never thought about that. Thanks! Eric -- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROT

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Edmund R. MacKenty
On Thursday 06 September 2007 17:56, Eric Chevalier wrote: >On 9/6/2007 4:31 PM, Edmund R. MacKenty wrote: >> Note that I'm using $(...) instead of backticks. Backticks are evil! > >The InList() function is slick; I like it! > >But I'm curious: why are backticks evil? (I didn't know about the >"$(

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Fargusson.Alan
Because it is very hard to nest them. -Original Message- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of Eric Chevalier Sent: Thursday, September 06, 2007 2:56 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: I am missing something basic with bash scripting. On 9/6/2007 4:31 PM, E

http://www.marist.edu/htbin/wlvindex?LINUX-390

2007-09-06 Thread Larry Ploetz
I posted three responses with the wrong email address: You could do something else entirely, like: larry$ a=a larry$ echo $list a|b|c larry$ [[ $list =~ $a ]] && echo hi || echo ho hi larry$ a=d

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Stricklin, Raymond J
> parm_1="invalid" > target_system="hadley" > space=" " > delim=" | " > raw_list=$(/bin/ls /clamscan/servers) > cooked_list=$(echo $raw_list | sed -e "s:$space:$delim:g") > echo "Raw list = "$raw_list echo "cooked list = "$cooked_list > case $target_system in > $cooked_list ) parm_1="valid" ;;

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Kielek, Samuel
This is probably the closest to what you're trying to do without getting too fancy: declare -a cooked_list=$(ls /clamscan/servers/) for server in [EMAIL PROTECTED]; do if [ "$server" == "$target_system" ]; then parm_1="valid" break else parm_1="invalid" fi done -Original M

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Eric Chevalier
On 9/6/2007 4:31 PM, Edmund R. MacKenty wrote: Note that I'm using $(...) instead of backticks. Backticks are evil! The InList() function is slick; I like it! But I'm curious: why are backticks evil? (I didn't know about the "$(command)" trick; I've been using backticks for a long time. I lear

Re: I am missing something basic with bash scripting.

2007-09-06 Thread James Melin
This: (put it off into a little test script of its own) parm_1="invalid" target_system="hadley" space=" " delim=" | " raw_list=$(/bin/ls /clamscan/servers) cooked_list=$(echo $raw_list | sed -e "s:$space:$delim:g") echo "Raw list = "$raw_list echo "cooked list = "$cooked_list case $target_system i

Re: I am missing something basic with bash scripting.

2007-09-06 Thread James Melin
Ahh. I had seen an example in the o'reilly text 'learning the bash shell' that made it appear variable substitution in case was valid, but considering they were using $PWD as the variable, indeed it would be the entire string. I'll try the loop in the morning. It would be nice if case DID work t

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Mark Post
>>> On Thu, Sep 6, 2007 at 5:10 PM, in message <[EMAIL PROTECTED]>, James Melin <[EMAIL PROTECTED]> wrote: > I'll try that however my echo's are not revealing that to be the case. > Stay tuned. If that doesn't help, then put a "set -x" right after the #!/bin/sh line, and send the output, along

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Edmund R. MacKenty
On Thursday 06 September 2007 16:53, James Melin wrote: >I am trying to get away from hard coded server names in a script using case > for valid name check > >This works but is not good because as soon as you add a new server to the > NFS mountpoint list the script this is from has to be changed. >

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Fargusson.Alan
The problem is that bash takes cooked_list as a single token in the case statement. It matches the entire list of systems, and not each member of the list. I don't know of any way around this. You will probably need to do another for loop on raw_list and check for a match in the loop. -O

Re: I am missing something basic with bash scripting.

2007-09-06 Thread James Melin
I'll try that however my echo's are not revealing that to be the case. Stay tuned. Mark Post <[EMAIL PROTECTED]> Sent by: Linux on 390 Port To

Re: I am missing something basic with bash scripting.

2007-09-06 Thread Mark Post
>>> On Thu, Sep 6, 2007 at 4:53 PM, in message <[EMAIL PROTECTED]>, James Melin <[EMAIL PROTECTED]> wrote: -snip- > raw_list=`ls /clamscan/servers` #read list of mountpoints -snip- > But even though the display of 'cooked_list' seems to be what I want it to > be, this never returns a match.

Re: Novell Online Update for SLES 9 SP3?

2007-09-06 Thread CWells Jackson
Try 'http://youfix.novell.com/youfix' first after the youfix has installed then try https://you.novell.com/update --- David Stuart <[EMAIL PROTECTED]> wrote: > Hi Mark, > > The incorrect URL is a typo when I copied the error > message. > > I am using Yast Online Update, and the only only URL

I am missing something basic with bash scripting.

2007-09-06 Thread James Melin
I am trying to get away from hard coded server names in a script using case for valid name check This works but is not good because as soon as you add a new server to the NFS mountpoint list the script this is from has to be changed. case $target_system in abinodji | calhoun | itasca | nokomi

Re: Missing OSA/2 Interfaces

2007-09-06 Thread David Stuart
Mark spent quite a bit of time working with me off-list, but we got the missing OSA/2 interfaces working again. The problem was a missing hotplug, due to a newbie error. I want to thank Mark for all the time he spent working on this with me. Dave Dave Stuart Prin. Info. Systems Suppo

Re: Novell Online Update for SLES 9 SP3?

2007-09-06 Thread David Stuart
Thanks Kim, I think it's a right/privileges issue. I can sign on to the Novell web site, so it still knows my user-id/password, but when I try to download a patch, I receive a message that I don't have privileges to do so. I've got a query in to our local guy who handles all this stuff with

Re: Novell Online Update for SLES 9 SP3?

2007-09-06 Thread Mark Post
>>> On Thu, Sep 6, 2007 at 3:20 PM, in message <[EMAIL PROTECTED]>, David Stuart <[EMAIL PROTECTED]> wrote: -snip- > When I press the Details button, I see the Media:file not found and HTTP > 403, and the URL, which matches the one you listed. A 403 is an authorization failure, so it's entirel

Re: Novell Online Update for SLES 9 SP3?

2007-09-06 Thread Kim Goldenberg
David Stuart wrote: Hi Mark, The incorrect URL is a typo when I copied the error message. I am using Yast Online Update, and the only only URL specified is https://you.novell.com/update. When I press Next, I am prompted for my user-id and password, and then a few seconds later I receive an e

Re: Novell Online Update for SLES 9 SP3?

2007-09-06 Thread David Stuart
Hi Mark, The incorrect URL is a typo when I copied the error message. I am using Yast Online Update, and the only only URL specified is https://you.novell.com/update. When I press Next, I am prompted for my user-id and password, and then a few seconds later I receive an error box stating t

Re: Novell Online Update for SLES 9 SP3?

2007-09-06 Thread Mark Post
>>> On Thu, Sep 6, 2007 at 2:50 PM, in message <[EMAIL PROTECTED]>, David Stuart <[EMAIL PROTECTED]> wrote: > Morning, > > I am having trouble reaching the Novell Online Update site via YOU. I have > used it before, successfully. However, now I am receiving the following > error message(s):

Novell Online Update for SLES 9 SP3?

2007-09-06 Thread David Stuart
Morning, I am having trouble reaching the Novell Online Update site via YOU. I have used it before, successfully. However, now I am receiving the following error message(s): ERROR:(Media:file not found) HTTP return code:403 (URL: https://stuartd2:[EMAIL PROTECTED]/update/s390/updates/SUSE-

unsubscribe

2007-09-06 Thread Martin, Larry D
unsubscribe .. This E-mail and any of its attachments may contain Prince George’s County Government or Prince George's County 7th Judicial Circuit Court proprietary information, which is privileged and confidential. Th

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread Evans, Kevin R
Believe me, I speak vintage also K -Original Message- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of David Boyes Sent: Thursday, September 06, 2007 1:16 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: Fedora-DS on Linux for SYstem z > Boy, I haven't heard it called a "machin

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread David Boyes
> Boy, I haven't heard it called a "machine room" for eons. You are > showing your age here, David. > Vintage, laddie, vintage. I *improve* with age, particularly when influenced by bottles... 8-) -- db -- For LINUX-390 subsc

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread Evans, Kevin R
Boy, I haven't heard it called a "machine room" for eons. You are showing your age here, David. Kevin -Original Message- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of David Boyes Sent: Thursday, September 06, 2007 12:44 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: Fedora

Re: FTPS (FTP over SSL) Package for SLES9

2007-09-06 Thread José L . Ramírez
I will like to see the curl command line. Regards, Jose -Original Message- From: Clark, Douglas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 05, 2007 8:35 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: FTPS (FTP over SSL) Package for SLES9 I was unsuccessful in getting this script

UNSCRIBE

2007-09-06 Thread Huegel, Thomas
UNSCRIBE __ << ella for Spam Control >> has removed VSE-List messages and set aside VM-List for me You can use it too - and it's FREE! http://www.ellaforspam.com

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread David Boyes
> I suspect that's because this is the rebranding of the Netscape Directory > Server that Red Hat bought so many moons ago. Ah. Yes, that would explain the distinct odor of frying bacon from the machine room. Playing with it, it's actually kind of nice -- the UI is something that could be loos

Re: NPIV FCP connections through Multiple FC Switches

2007-09-06 Thread Craig Collins
We stumbled across the answer and wanted to document it here in case someone else runs into this problem in the future. The physical port on the z9 had to be added to the zone definition on the switches before we could get it to log into the remote storage through the remote switch. The z9 WWPN d

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread David Boyes
> Would this be a case for having a z/Linux hosted on Hercules/390 on a > x86 platform? I don't see the need for the reliability and scalability > for this sort of thing. I would say that something like a Fedora-DS appliance probably isn't the place you'd make that argument. If you're going to do

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread Mark Post
>>> On Thu, Sep 6, 2007 at 12:32 PM, in message <[EMAIL PROTECTED]>, "McKown, John" <[EMAIL PROTECTED]> wrote: -snip- > Would this be a case for having a z/Linux hosted on Hercules/390 on a > x86 platform? I don't see the need for the reliability and scalability > for this sort of thing. This "tes

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread Mark Post
>>> On Thu, Sep 6, 2007 at 10:56 AM, in message <[EMAIL PROTECTED]>, David Boyes <[EMAIL PROTECTED]> wrote: -snip- > http://www.directory.fedora.redhat.com/wiki/Documentation > > It does build cleanly from source on RHEL5 (although it takes a > gawd-awful amount of CPU to do it -- *definitely* do

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread McKown, John
> -Original Message- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On > Behalf Of David Boyes > Sent: Thursday, September 06, 2007 9:57 AM > To: LINUX-390@VM.MARIST.EDU > Subject: Re: Fedora-DS on Linux for SYstem z > > > > > What is it? If the package name contains the string "fe

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread Adam Thornton
On Sep 6, 2007, at 7:24 AM, Tom Shilson wrote: Fedora-DS is Fedora Directory Server, an open-source LDAP server. That is all I know. If it's not, OpenLDAP is certainly available and works quite well. Adam -- For LINUX-390 su

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread Mark Post
>>> On Thu, Sep 6, 2007 at 10:24 AM, in message <[EMAIL PROTECTED]>, Tom Shilson <[EMAIL PROTECTED]> wrote: > Fedora-DS is Fedora Directory Server, an open-source LDAP server. That is > all I know. Tom, Thanks. I found the package on the Fedora download page. The name starts with "fedora-ds"

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread David Boyes
> > What is it? If the package name contains the string "fed" then I didn't > see it on the RHEL5 DVD. http://www.directory.fedora.redhat.com/wiki/Documentation It does build cleanly from source on RHEL5 (although it takes a gawd-awful amount of CPU to do it -- *definitely* don't do this during

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread Max Belardi
Mark Post ha scritto: On Thu, Sep 6, 2007 at 6:05 AM, in message <[EMAIL PROTECTED]>, Massimiliano Belardi <[EMAIL PROTECTED]> 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? Wh

Re: Hitachi DASD subsystem Replication - anyone?

2007-09-06 Thread David Boyes
> Dennis, thanks for the reply. Yes, it would be very nice if the native > FLASHCOPY command set would work, but we were told point blank from some > HDS development team members on a conference call inquiring on just that > yesterday, that it is not compatible. Not surprising. They really don't

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread Tom Shilson
Fedora-DS is Fedora Directory Server, an open-source LDAP server. That is all I know. Tom Shilson Powered by Penguins Unix Team / IT Server Services Tel: 651-733-7591 tshilson at mmm dot com Fax: 651-736-7689 -- For LINU

Re: Fedora-DS on Linux for SYstem z

2007-09-06 Thread Mark Post
>>> On Thu, Sep 6, 2007 at 6:05 AM, in message <[EMAIL PROTECTED]>, Massimiliano Belardi <[EMAIL PROTECTED]> 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? What is it? If the p

Re: Hitachi DASD subsystem Replication - anyone?

2007-09-06 Thread Bennie Hicks
Dennis, thanks for the reply. Yes, it would be very nice if the native FLASHCOPY command set would work, but we were told point blank from some HDS development team members on a conference call inquiring on just that yesterday, that it is not compatible. We have started to review the ShadowImage

Re: VSwitch and IPv6

2007-09-06 Thread Robert J Brenneman
Yep - you need Layer2 - Setup the vswitch like Alan mentioned. BUT: the osa port can **not** support layer2 & layer3 at the same time. If all your ports are in use as layer3 at the moment, you'll have to free one up to initialize it in layer2. The first connection to the osa sets the mode, and ever

Re: IP takeover across lpars fails through a vswitch

2007-09-06 Thread Alan Altmark
On Thursday, 09/06/2007 at 09:15 EDT, Ronald van der Laan <[EMAIL PROTECTED]> wrote: > VM1 VM2 > /==\ /==\ > | | | | > | /--\ | | /--

IP takeover across lpars fails through a vswitch

2007-09-06 Thread Ronald van der Laan
I've got 2 z/VM lpars and run a Linux server in each lpar that should be able to service common ip address. Both lpars are connected via double OSA cards to a real switch. VM1 VM2 /==\ /==\ |

NPIV FCP connections through Multiple FC Switches

2007-09-06 Thread Craig Collins
We're running into a configuration issue trying to get NPIV FCP connections to work through a switched fabric distributed across two locations. At our primary location, the z9 FCP is connected into Switch #1, a McData 3232 switch. We have EMC DMX3 storage connected to Switch #1 as well and are ab

Re: VSwitch and IPv6

2007-09-06 Thread Alan Altmark
On Thursday, 09/06/2007 at 08:36 EDT, "Scully, William P" <[EMAIL PROTECTED]> wrote: > This leads me to believe that I need a VSwitch similar to: > > Define VSwitch INTRAV6 RDev 6C00 Connect Controller TCPIPOSA Ethernet Correct. > However, in doing so I'm not clear how, in Linux for zSeries, to

VSwitch and IPv6

2007-09-06 Thread Scully, William P
Be kind when helping me, please: We're setting up a pure IPv6 network. The cable has now been plugged into the OSA adapter. It seems my next step is to connect that OSA adapter to a Virtual Switch, so that many Linux and z/VM servers (among others) can get to the IPv6 network. With IPv4 we had

Fedora-DS on Linux for SYstem z

2007-09-06 Thread Massimiliano Belardi
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 -- For LINUX-390 subscribe / signoff / archive access instructions