Re: Trimming a File

2007-09-04 Thread Larry Ploetz
Mark Post wrote: count=$(wc -l /var/log/toolarge | cut -f1 -d" ") let start=$count- if [ ${start} -le 1 ]; then echo start is set to 1 let start=1 fi start=$((count > 1 ? count - 1 : 1)) like c. - Larry -

Re: Performance: 31 vs 64 bit?

2007-09-04 Thread Mark Post
>>> On Tue, Sep 4, 2007 at 10:44 PM, in message <[EMAIL PROTECTED]>, Rick Troth <[EMAIL PROTECTED]> wrote: > On Tue, 4 Sep 2007, Mark Post wrote: >> I want to point out that "the situation that the recent distributions >> are only available as 64-bit" was at the insistence of IBM itself. >> I per

Re: Performance: 31 vs 64 bit?

2007-09-04 Thread Rick Troth
On Tue, 4 Sep 2007, Mark Post wrote: > I want to point out that "the situation that the recent distributions > are only available as 64-bit" was at the insistence of IBM itself. > I personally still think that 31-bit versions are ... Well ... that is sad. Can you substantiate that? I cannot o

Re: Trimming a File

2007-09-04 Thread Rich Smrcina
Because wc prints the filename in the output: [EMAIL PROTECTED]:~> wc -l x.xxx 10 x.xxx John Summerfield wrote: Why is the cut useful? -- Rich Smrcina VM Assist, Inc. Phone: 414-491-6001 Ans Service: 360-715-2467 rich.smrcina at vmassist.com http://www.linkedin.com/in/richsmrcina Catch t

Re: Trimming a File

2007-09-04 Thread John Summerfield
Mark Post wrote: On Tue, Sep 4, 2007 at 2:21 PM, in message <[EMAIL PROTECTED]>, "Scully, William P" <[EMAIL PROTECTED]> wrote: What's the best technique for trimming a file? IE: I have file "/var/log/toolarge". What's the fastest technique to discard - The first 10,000 records? sed -i -e

Re: db2 scripts using crontab

2007-09-04 Thread John Summerfield
LJ Mace wrote: I'm trying to finish a script that will bring down/backup/zip/restart our database and schedule it using crontab. If I su to root and start the script it works fine. I've got everthing working except the down part of DB2. Everytime I issue the command I get permission denied. I was

Re: trashed 3390-9

2007-09-04 Thread Robert J Brenneman
Since it looks like it overwrote the first 51 cylinders with VTOC and INDEX, that blew away the first 50 cylinders of the first linux partition on the volume. You could spend an awful lot of effort recovering data out of the end of the volumes, or you could reformat, rebuild your logical volumes,

Re: VSWITCH controllers

2007-09-04 Thread Alan Altmark
On Tuesday, 09/04/2007 at 03:48 EDT, Peter Rothman <[EMAIL PROTECTED]> wrote: > We have test and production Linux systems on one of our z/VM 520 systems. > We want to separate the test and production systems - different VSWITCHes, > subnets etc. > > However it seems there is no way to separate the

Re: VSWITCH controllers

2007-09-04 Thread David Kreuter
1.DEF VSWITCH .. CONTROLLER ... 2. SET VWSWITCH CONTROLLER David -Original Message- From: Linux on 390 Port on behalf of Marcy Cortes Sent: Tue 9/4/2007 3:59 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: VSWITCH controllers Well, your mileage may vary... But I'd be wary about putting t

Re: Trimming a File

2007-09-04 Thread Edmund R. MacKenty
On Tuesday 04 September 2007 14:31, Rich Smrcina wrote: >He wants to discard the first and last 10,000 lines. head and tail >write them to stdout. Doh! I misread it. Sorry about that. I'm usually trying to preserve the last N lines of my logs, so I wrote that reflexively. Mark's method using

trashed 3390-9

2007-09-04 Thread Little, Chris
well sort of. our intrepid storage person ran the jcl at the end of this email to initialize dasd. to my chagrin, it included the three physical volumes in a linux logical volume group. is there any hope of recreating the vtoc and reliably rescuing the data? //DISKINT1 JOB (C110,2,000,SYS,2282

Re: VSWITCH controllers

2007-09-04 Thread Marcy Cortes
Well, your mileage may vary... But I'd be wary about putting test and prod on the same lpar/VM system. Our test linux servers are not well behaved at all - it's the wild west on that lpar:) I wouldn't want to explain to management why dev/test stuff may have implacted production. Will cost you s

VSWITCH controllers

2007-09-04 Thread Peter Rothman
We have test and production Linux systems on one of our z/VM 520 systems. We want to separate the test and production systems - different VSWITCHes, subnets etc. However it seems there is no way to separate the controllers - that is if you want more than one by specifying CONTROLLER *VSWITCH. CP

Re: Trimming a File

2007-09-04 Thread Mark Post
>>> On Tue, Sep 4, 2007 at 2:32 PM, in message <[EMAIL PROTECTED]>, "Edmund R. MacKenty" <[EMAIL PROTECTED]> wrote: > On Tuesday 04 September 2007 14:21, Scully, William P wrote: >>What's the best technique for trimming a file? IE: I have file >>"/var/log/toolarge". What's the fastest technique

Re: Trimming a File

2007-09-04 Thread Rich Smrcina
Mack, He wants to discard the first and last 10,000 lines. head and tail write them to stdout. Edmund R. MacKenty wrote: On Tuesday 04 September 2007 14:21, Scully, William P wrote: What's the best technique for trimming a file? IE: I have file "/var/log/toolarge". What's the fastest techni

Re: Trimming a File

2007-09-04 Thread Mark Post
>>> On Tue, Sep 4, 2007 at 2:21 PM, in message <[EMAIL PROTECTED]>, "Scully, William P" <[EMAIL PROTECTED]> wrote: > What's the best technique for trimming a file? IE: I have file > "/var/log/toolarge". What's the fastest technique to discard > > - The first 10,000 records? sed -i -e '1,100

Re: Trimming a File

2007-09-04 Thread Edmund R. MacKenty
On Tuesday 04 September 2007 14:21, Scully, William P wrote: >What's the best technique for trimming a file? IE: I have file >"/var/log/toolarge". What's the fastest technique to discard > >- The first 10,000 records? head -n 1 /var/log/toolarge > /var/log/toolarge.$$ && mv /var/log/toolarge

Trimming a File

2007-09-04 Thread Scully, William P
What's the best technique for trimming a file? IE: I have file "/var/log/toolarge". What's the fastest technique to discard - The first 10,000 records? - The last 10,000 records? And as a bonus, since files are stream oriented, what's the fastest technique for finding out how many records

Re: Performance: 31 vs 64 bit?

2007-09-04 Thread Mark Post
>>> On Tue, Sep 4, 2007 at 7:32 AM, in message <[EMAIL PROTECTED]>, Mario Held <[EMAIL PROTECTED]> wrote: -snip- > And given the situation that the recent distributions are only available > as 64-bit flavor the question is 'Do I stay with my old 31-bit kernel version > or am I interested in the n

Re: Performance: 31 vs 64 bit?

2007-09-04 Thread Dave Jones
Rob van der Heij wrote: On 9/4/07, Rick Troth <[EMAIL PROTECTED]> wrote: [snip] PS The wonderful thing about Linux on z/VM performance is that there often are multiple factors involved, and you cannot really predict the effect without measuring. As for running 32-bit applications in a 64-

Re: db2 scripts using crontab

2007-09-04 Thread Edmund R. MacKenty
On Tuesday 04 September 2007 11:02, LJ Mace wrote: >I'm trying to finish a script that will bring >down/backup/zip/restart our database and schedule it >using crontab. >If I su to root and start the script it works fine. >I've got everthing working except the down part of >DB2. >Everytime I issue t

Re: db2 scripts using crontab

2007-09-04 Thread Tom Shilson
Crontrab runs a minimal profile before it executes the command. You man need to run the root profile within your script. Use the . (dot) command to exeute another script as if it were part the running script. (E.g., . /root/.profile ) I run my db2 scripts from cron as user db2inst1. That solve

db2 scripts using crontab

2007-09-04 Thread LJ Mace
I'm trying to finish a script that will bring down/backup/zip/restart our database and schedule it using crontab. If I su to root and start the script it works fine. I've got everthing working except the down part of DB2. Everytime I issue the command I get permission denied. I was getting it on t

Re: Tomcat startup

2007-09-04 Thread Aria Bamdad
There were two problems with tomcat on SLES10 when it first was released. One was a message that showed in the logs about jmx.jar and licensing issues. After installing the jmx.jar in the /(catalinahome)/bin I had to add this directory to the CLASSPATH variable in the catalina.sh script. The sec

Re: Performance: 31 vs 64 bit?

2007-09-04 Thread Rob van der Heij
On 9/4/07, Rick Troth <[EMAIL PROTECTED]> wrote: > I cannot wait for Barton and company to measure it! Don't hold your breath... Most of the measurements we do is because of real customer requirements to reduce their TCO or improve performance without increasing cost. And most of our customers

Re: Performance: 31 vs 64 bit?

2007-09-04 Thread Mario Held
>I wrote: > > > But if the distributors are only shipping 64-bit kernels, then '-m31' > > > still does not completely answer the question about 31-bit performance. > > > The rest of Linux will be running 64-bit, skewing the results. > 64-bit Linux kernel will have more 64-bit concerns (and may

Re: Adding dasd with Red Hat

2007-09-04 Thread Evans, Kevin R
Marian, I thought so also and I have to admit that this "recommendation" I did not hear first hand. Be that as it may, we are certainly heading down the RHEL path at the moment. Regards Kevin -Original Message- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Marian Gaspar