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
-
>>> 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
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
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
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
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
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,
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
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
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
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
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
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
>>> 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
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
>>> 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
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
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
>>> 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
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-
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
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
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
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
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
>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
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
27 matches
Mail list logo