Re: Portupgrade status

2011-01-04 Thread Matthew Seaman
On 04/01/2011 00:51, ill...@gmail.com wrote:
 No, the -R flag in portmaster tells it to not rebuild
 ports taht have already been built on this run (I
 believe from reading man portmaster).  The -R
 flag in portupgrade rebuilds the ports on which
 the named port depends
 -R
 --upward-recursive Act on all those packages required by the given
 packages as well. (When specified with -F, fetch
 recursively, including the brand new, uninstalled
 ports that an upgraded port requires)
 
 I don't see any equivalent functionality for portmaster,
 sadly.

This is actually portmaster's default behaviour.  So:

portupgrade -R foo/bar is equivalent to portmaster foo/bar

portupgrade -fRr foo/bar is equivalent to portmaster -fr foo/bar

There isn't actually a way to do the equivalent of

portupgrade foo/bar

-- that is, only update the specifically named port, without updating
any dependencies as well.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: a new hard-drive in a 2y/o laptop

2011-01-04 Thread Ian Smith
On Mon, 3 Jan 2011 16:31:17 -0500, Chris Brennan wrote:
[.. trimming ccs, selectively quoting and de-gmailing a bit ..]

  On Sun, Jan 2, 2011 at 1:39 AM, Michael Powell nightre...@hotmail.com
  wrote:
   No. I used the of=/dev/ad4 as described above. However, I think you've hit
   the nail on the head on one aspect. I believe that 6.2 disk was originally
   set up as dangerously dedicated. It was so long ago and I had forgotten
   all about it, but this does dovetail with what your are getting at.
  
  That may be so for you, but nothing less then FreeBSD8.1 or a Gentoo 
  LiveCD has touched this drive. Gentoo only yo prove to myself that a 
  sucessful ext4 filesystem could be created. GPT/GEOM wasn't used, I 
  used all standard disk-creation methods as described in the gentoo 
  handbook. I also used Gentoo's gpart utilities to independatly verify 
  that any artifacts of GPT/GEOM were removed (which they were).

Ok.  It may still be useful to see what if anything remains in the areas 
that GPT uses .. see below.

   was attempting to do a fresh 'minimal' install of 8.0-Release to the old 
   6.2
   disk pulled off a shelf prior to doing restore(s) of a dump from just the
   day before. It was only done because it could be done immediately, and a
   newer, larger, better replacement procured after the fact.
  
  This is actually something I fear in reinstalling my other FreeBSD 
  system, which is currently 7.3, which has been upgraded successfully 
  from 6.1. But ports has gotten out of hand and I'm rather tired of 
  trying to fix each port, one at a time when there are prolly hundreds 
  currently installed.

For sure.  I'm going to wait till 7.4-RELEASE, then reinstall all of the 
ports on my now 7.4-PRERELEASE system from the set of ports (and esp. 
packages) resulting from the ports freeze .. that way there's much less 
chance of inconsistencies and mangled dependencies that often occur when 
trying to upgrade a lot of ports/packages installed some time ago ..

   Exact copy of error from my notes here:
  
   Unable to find device node for /dev/ad4s1b in /dev! The creation of
   filesystems will be aborted. Then pressing OK brings this: Couldn't 
   make
   filesystems properly. Aborting.
  
  Yes, this is exactly the same error I get. While that is the same, I 
  think there is an underlying issue here that is causing my issue that 
  doesn't exactly pertain to 'dangerously dedicated'.

Sure.

   This from sysinstall and occurs after fdisk, labeling, at the point when
   sysinstall then tries to write out the config to the disk and newfs.
  
  Yerp, sysinstalls pukes at newfs/swap creation, when it can't find 
  /dev/ad4s1b (which is swap)
  
   Or any other form of 'garbage'. I'd use the 8.1 LiveFS CD myself just as a
   personal preference - but either approach should do the job.
  
  Well, the garbage I reported was because of a typo on my part.
  
   Yes - I agree. Would also be nice to examine it afterward with a hex editor
   to actually see *if* all writes were zero.  Any 'ones' sprinkled in there,
   especially in the region of the disk we are talking about would indicate
   corruption. And my wild guess if this is the situation it may possibly
   indicate some form of subtle hardware incompatibility most likely a clash 
   of
   firmwares, e.g. controller and disk(s).  Some form of non-standard
   controller implementation, especially wrt to its firmware being buggy.
  
  If someone provides the command for this, I will happily run it and 
  see if the output is all zero's...

Ok, let's eg look at the first and last 'tracks' of 63 sectors.  If you 
have somewhere you can copy these to (like a USB stick) then you can do 
that and examine them on another box with hexdump(1) | less(1).  If not, 
as they're expected to be mostly zeroes, you can do it directly:

 dd if=/dev/ad4 count=71 | hd | less

Not sure if Fixit provides hd /or less, though they appear in /usr/bin?

That shows you the boot sector ie MBR, plus anything in sectors 1-62, 
plus the first 4KB of what will be ad4s1, ie the s1 boot blocks (if 
they've been ever written there yet and haven't been since cleared)

According to your earlier report, your disk has:
 cylinders=1453521 heads=16 sectors/tracks=63 (1008 blks/cyl)
and using that (standard) geometry, reformatted a bit:
 Offset   Size(ST)  End Name  PTypeDescSubtype Flags
 0 6362   -12 unused  0
63 14651491051465149167ad4s18freebsd165

Check: 1453521 * 16 * 63 = 1465149168 sectors, numbered 0..1465149167

So since iseek=0 starts at sector 0, then iseek=1465149167 starts at the 
last sector, right?  So:

 dd if=/dev/ad4 iseek=1465149104 count=63 | hd

shows the last 63 sectors (last track) of the drive.  If this isn't all 
zeroes (which is worth knowing, and recording) then make it so with:

 dd if=/dev/zero of=/dev/ad4 oseek=1465149104 count=63

which is ok for your blank 

Re: randomising tracks: scripting question

2011-01-04 Thread Peter Vereshagin
You know St. Peter won't call my name, freebsd-questions!
2011/01/03 20:23:38 -0800 Joseph Olatt j...@eskimo.com = To Frank Shute :
JO On Sun, Dec 26, 2010 at 05:09:30PM +, Frank Shute wrote:
JO  
JO  I generally play my tracks of an album like so:
JO  
JO  for track in $(cat trombone_shorty-backatown.m3u); do
JO  mplayer $track
JO  done
JO  
JO  They then play in the correct order.
JO  
JO  How would I go about randomising the order of play using
JO  sh (preferably) or perl?

I have several tens of thousands of MIDI files from 90s. They are too many for 
'random play' feature of the Timidity++ which is used with 'eawpats', the GUS 
patches.
Here is my bash script to play them in random order:
===
#!/usr/local/bin/bash
IFS='
'
fns=(`find ~/mid/ -iname '*.mid'`)
while :; do 
timidity -a -OdS -in -j -t 1251 -E t -p a -R 500 -EFreverb=127 -EFns=4 
${fns[$((${#f...@]}*$random/32767))]}
done
===

Of course I miss the 'Previous track' functionality.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 8.1-STABLE amd 64 crash during shutdown

2011-01-04 Thread Fernando Apesteguía
On Mon, Jan 3, 2011 at 5:06 PM, Janos Dohanics w...@3dresearch.com wrote:
 My system crashed during shutdown, so I tried to get a crash dump, but
 I don't seem to be able to do so:

 Dumping 1224 MB: (stops at 1177)

 Fatal trap 12: page fault while in kernel mode
 cpuid = 1, apic id = 01
 fault virtual address = 0x1
 fault code            = supervisor read instruction, page not present
 instruction pointer: 0x20:0x1

 uname -opr
 FreeBSD 8.1-STABLE amd64

 I'd appreciate your advice...

Just a wild guess: Does your system crash if it is booted with ACPI disabled?

And is your swap partition big enough to create the dump?


 --
 Janos Dohanics
 w...@3dresearch.com
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


a perl question

2011-01-04 Thread S Mathias
cat asdf.txt
bla-bla
bla-bla
bla[XYZ]
importantthing
another important thing
[/XYZ]
bla-bla
bla-bla
[XYZ]
yet another thing
hello!
[/XYZ]
bla-bla
etc.
$ SOMEPERLMAGIC asdf.txt  output.txt
$ cat output.txt
importantthing
another important thing
yet another thing
hello!


how can i sovle this question? what is SOMEPERLMAGIC? are there any perl gurus, 
that have a little spare time?

Thank you! :\


  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a perl question

2011-01-04 Thread Peter Vereshagin
You know St. Peter won't call my name, freebsd-questions!
2011/01/04 02:32:00 -0800 S Mathias smathias1...@yahoo.com = To 
freebsd-questions@freebsd.org :

$ perl -Mstrict -nwe 'print unless m/bla|XYZ/;'  asdf.txt

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a perl question

2011-01-04 Thread krad
On 4 January 2011 10:32, S Mathias smathias1...@yahoo.com wrote:

 cat asdf.txt
 bla-bla
 bla-bla
 bla[XYZ]
 importantthing
 another important thing
 [/XYZ]
 bla-bla
 bla-bla
 [XYZ]
 yet another thing
 hello!
 [/XYZ]
 bla-bla
 etc.
 $ SOMEPERLMAGIC asdf.txt  output.txt
 $ cat output.txt
 importantthing
 another important thing
 yet another thing
 hello!


 how can i sovle this question? what is SOMEPERLMAGIC? are there any perl
 gurus, that have a little spare time?

 Thank you! :\



 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org



doesnt need to be perl either

cat asdf.txt | awk 'BEGIN {a=0} { if ( $0 ~ /\[XYZ\]/ ) a=1;  if ( $0 ~
/\[\/XYZ\]/ ) a=0; if ( a == 1) print $0}'

or something close to it
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a perl question

2011-01-04 Thread Jonathan McKeown
On Tuesday 04 January 2011 12:32:00 S Mathias wrote:
 cat asdf.txt
 bla-bla
 bla-bla
 bla[XYZ]
 importantthing
 another important thing
 [/XYZ]
 bla-bla
 bla-bla
 [XYZ]
 yet another thing
 hello!
 [/XYZ]
 bla-bla
 etc.
 $ SOMEPERLMAGIC asdf.txt  output.txt
 $ cat output.txt
 importantthing
 another important thing
 yet another thing
 hello!

This could mean almost anything (witness another response which excludes lines 
containing blah or XYZ, which gives the desired output on your test input).

Are you actually trying to extract all the lines inside [XYZ]...[/XYZ] tags?

are the tags guaranteed not to occur on the lines you need to extract, as they 
appear here?

Because (all on one line)

perl -ne 'print if ($check = m{\[XYZ\]} .. m{\[/XYZ\]})  1 and 
$check !~ /E0$/' asdf.txt output.txt

produces the same output as you have above for the test input. (The .. range 
operator in scalar context is true as soon as the left-hand expression is 
true, and false as soon as the right-hand expression is true. It returns 1 
each time it becomes true, incrementing integers as it stays true, and 
appends E0 to the last number as it becomes false, which lets you exclude 
both endpoints).

Jonathan

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a perl question

2011-01-04 Thread Patrick Bihan-Faou

Le 04/01/2011 14:06, krad a écrit :

On 4 January 2011 10:32, S Mathiassmathias1...@yahoo.com  wrote:


cat asdf.txt
bla-bla
bla-bla
bla[XYZ]
importantthing
another important thing
[/XYZ]
bla-bla
bla-bla
[XYZ]
yet another thing
hello!
[/XYZ]
bla-bla
etc.
$ SOMEPERLMAGIC asdf.txt  output.txt
$ cat output.txt
importantthing
another important thing
yet another thing
hello!


how can i sovle this question? what is SOMEPERLMAGIC? are there any perl
gurus, that have a little spare time?

Thank you! :\



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org



doesnt need to be perl either

cat asdf.txt | awk 'BEGIN {a=0} { if ( $0 ~ /\[XYZ\]/ ) a=1;  if ( $0 ~
/\[\/XYZ\]/ ) a=0; if ( a == 1) print $0}'

or something close to it


Simpler yet

cat asdf.txt | grep -v XYZ | grep -v bla

Patrick.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portupgrade status

2011-01-04 Thread Warren Block

On Tue, 4 Jan 2011, Matthew Seaman wrote:


On 04/01/2011 00:51, ill...@gmail.com wrote:

No, the -R flag in portmaster tells it to not rebuild
ports taht have already been built on this run (I
believe from reading man portmaster).  The -R
flag in portupgrade rebuilds the ports on which
the named port depends
-R
--upward-recursive Act on all those packages required by the given
packages as well. (When specified with -F, fetch
recursively, including the brand new, uninstalled
ports that an upgraded port requires)

I don't see any equivalent functionality for portmaster,
sadly.


This is actually portmaster's default behaviour.  So:

   portupgrade -R foo/bar is equivalent to portmaster foo/bar

   portupgrade -fRr foo/bar is equivalent to portmaster -fr foo/bar


I'm not seeing where portmaster has the portupgrade -R functionality 
(rebuild this port and those it depends on).


portmaster(8) says The focus of this tool is to keep the dependency 
tracking information for your ports up to date.  This allows you to 
safely update a specific port without having to update all of the ports 
above it.


That would make the default action equivalent to portupgrade's -r 
option (rebuild this port and all those that depend on it).


What have I missed?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 9650SE-2LP raid card locks system

2011-01-04 Thread Troy Beisigl
I will have to check on its next lockup. It happens about every week  
to week and a half.


Troy Beisigl


On Jan 3, 2011, at 8:49 PM, Mike Tancsa wrote:


On 1/3/2011 9:14 PM, Troy Beisigl wrote:

Hi Mike,

We are running the latest firmware. We upgraded to it in case this  
was the issue. As you can see from the log entry below, it shows  
the file system was not shut down cleanly because it was locked and  
had to be powered off. We are using Intel motherboards, so maybe  
something with FreeBSD and this card with the Intel motherboard? I  
know that this card works just fine with this board on CentOS, so...




When it locks up, are you sure its the disk that locks up ?  From the
console, if you do a CTRL+T, what does it show its blocking on ? Are  
you

able to build a debug kernel to see where things are stuck ?

---Mike

Dec 29 17:36:12 web01 kernel: twa0: 3ware 9000 series Storage  
Controller port 0xd000-0xd0ff mem 0xd000-0xd1ff, 
0xd202-0xd2020fff irq 16 at device 0.0 on pci1

Dec 29 17:36:12 web01 kernel: twa0: [ITHREAD]
Dec 29 17:36:12 web01 kernel: twa0: WARNING: (0x04: 0x0008):  
Unclean shutdown detected: unit=0
Dec 29 17:36:12 web01 kernel: twa0: INFO: (0x15: 0x1300):  
Controller details:: Model 9650SE-2LP, 2 ports, Firmware FE9X  
4.10.00.007, BIOS BE9X 4.08.00.002


Troy Beisigl



 Original Message 
From: Mike Tancsa m...@sentex.net
To: Troy Beisigl t...@i2bnetworks.com
Cc: freebsd-questions@freebsd.org
Sent: Mon, Jan 3, 2011, 13:32 PM
Subject: Re: 9650SE-2LP raid card locks system

I have a number of these cards and they work very well for us.  What
version of the firmware are you using on the card ?

I have this on a busy db server. But its RELENG8.

twa0: 3ware 9000 series Storage Controller port 0x1000-0x10ff mem
0xb000-0xb1ff,0xb400-0xb4000fff irq 19 at device 0.0  
on pci12

twa0: [ITHREAD]
twa0: INFO: (0x15: 0x1300): Controller details:: Model 9650SE-2LP, 2
ports, Firmware FE9X 3.08.00.016, BIOS BE9X 3.08.00.004

I have had good luck with Areca cards as well, but they start in 4  
port
models.  But really, all should work just fine with this 3ware/LSI  
card


---Mike




On 1/3/2011 3:58 PM, Troy Beisigl wrote:

Hi All,

We have been seeing a problem with FreeBSD 7.3 and up where the  
system

will just hang when using a 9650SE-2LP raid card and 2 500G drives
mirrored. The system will run for about a week and then the  
filesystem
just hangs, causing the system to hang. We've looked through the  
logs

and found nothing at all. We have changed the card and then the
motherboard but the problem still exists. We have run this card  
with

CentOS without fail in the same system configuration.

If the card is not supported, can anyone recommend one that does  
work?


Thanks,

Troy Beisigl




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 







___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 9650SE-2LP raid card locks system

2011-01-04 Thread Mike Tancsa
On 1/4/2011 11:12 AM, Troy Beisigl wrote:
 I will have to check on its next lockup. It happens about every week to
 week and a half.

Are you able to force the issue to recreate the problem ?

---Mike
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a perl question

2011-01-04 Thread Randal L. Schwartz
 Patrick == Patrick Bihan-Faou patrick.bihan-f...@teambox.fr writes:

Patrick cat asdf.txt | grep -v XYZ | grep -v bla

And yet, you still have the Useless Use of Cat.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


locale settings and core dump LyX

2011-01-04 Thread Marco Beishuizen

Hi,

When I start LyX I'm getting an error:

...
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Abort (core dumped)
...

This seems to have something to do with my locale settings:

...
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_ALL=
...

When I change the locale setting to C, lyx runs fine, but I want to keep 
my locale at UTF-8.


So how can I keep UTF-8 and keep using LyX?

Thanks in advance,
Marco

--
QOTD:
The only easy way to tell a hamster from a gerbil is that the
gerbil has more dark meat.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a perl question

2011-01-04 Thread Devin Teske

On Jan 4, 2011, at 9:33 AM, Randal L. Schwartz wrote:

 Patrick == Patrick Bihan-Faou patrick.bihan-f...@teambox.fr writes:
 
 Patrick cat asdf.txt | grep -v XYZ | grep -v bla
 
 And yet, you still have the Useless Use of Cat.

I know I'm joining the party late, but... what about:

grep -Ev '(XYZ|bla)' asdf.txt

or

awk '!/XYZ/  !/bla/ {print}' asdf.txt

ok... end useless contribution.

 
 -- 
 Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
 See http://methodsandmessages.posterous.com/ for Smalltalk discussion
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

--
Cheers,
Devin Teske

- CONTACT INFORMATION -
Business Solutions Consultant II
FIS - fisglobal.com
510-735-5650 Mobile
510-621-2038 Office
510-621-2020 Office Fax
909-477-4578 Home/Fax
devin.te...@fisglobal.com

- LEGAL DISCLAIMER -
This message  contains confidential  and proprietary  information
of the sender,  and is intended only for the person(s) to whom it
is addressed. Any use, distribution, copying or disclosure by any
other person  is strictly prohibited.  If you have  received this
message in error,  please notify  the e-mail sender  immediately,
and delete the original message without making a copy.

- FUN STUFF -
-BEGIN GEEK CODE BLOCK-
Version 3.1
GAT/CS d(+) s: a- C++() UB$ P++() L++() !E--- W++ N? o? K- w O
M+ V- PS+ PE Y+ PGP- t(+) 5? X+(++) R++ tv(+) b+(++) DI+(++) D(+) G+++ e+ h
r++ y+ 
--END GEEK CODE BLOCK--
http://www.geekcode.com/

- END TRANSMISSION -

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 9650SE-2LP raid card locks system

2011-01-04 Thread Troy Beisigl
So far, no. It just happens. The system is not that loaded. It runs 2  
virtually hosted websites with SSL and that is it at the moment.


Troy Beisigl


On Jan 4, 2011, at 8:20 AM, Mike Tancsa wrote:


On 1/4/2011 11:12 AM, Troy Beisigl wrote:
I will have to check on its next lockup. It happens about every  
week to

week and a half.


Are you able to force the issue to recreate the problem ?

---Mike
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a new hard-drive in a 2y/o laptop

2011-01-04 Thread Chris Brennan
On Tue, Jan 4, 2011 at 3:56 AM, Ian Smith smi...@nimnet.asn.au wrote:

 On Mon, 3 Jan 2011 16:31:17 -0500, Chris Brennan wrote:
 [.. trimming ccs, selectively quoting and de-gmailing a bit ..]


Trimmings! Oh nevermind. I don't know what possessed me to  go and look
at the debug window. But I do and I see the following.

GEOM: ad4: the primary GPT table is corrupt or invalid.
GEOM: ad4: using the secondary instead -- recovery strongly advised.

This is even after zero the beginning and the end of the drive 
Something is hinky!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a perl question

2011-01-04 Thread RW
On Tue, 4 Jan 2011 10:01:47 -0800
Devin Teske dte...@vicor.com wrote:

 
 On Jan 4, 2011, at 9:33 AM, Randal L. Schwartz wrote:
 
  Patrick == Patrick Bihan-Faou
  patrick.bihan-f...@teambox.fr writes:
  
  Patrick cat asdf.txt | grep -v XYZ | grep -v bla
  
  And yet, you still have the Useless Use of Cat.
 
 I know I'm joining the party late, but... what about:
 
 grep -Ev '(XYZ|bla)' asdf.txt
 
 or
 
 awk '!/XYZ/  !/bla/ {print}' asdf.txt
 
 ok... end useless contribution.

It's odd that people seem to be taking bla-bla so literally, when it's
clearly a place holder for arbitary text. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mpt error

2011-01-04 Thread Per olof Ljungmark
On 09/29/10 15:59, Robert Fitzpatrick wrote:
 Just want to check here to see if anyone else has experienced the
 following errors showing up periodically in the logs on a FreeBSD 8.0
 VPS on vmware ESXi...
 
 Sep 29 05:38:35 db1 kernel: mpt0: attempting to abort req
 0xff80002a48c0:60350 function 0
 Sep 29 05:38:35 db1 kernel: mpt0: completing timedout/aborted req
 0xff80002a48c0:60350
 Sep 29 05:38:35 db1 kernel: mpt0: abort of req 0xff80002a48c0:0
 completed
 
 From what I googled, it appears this may be a disk I/O issue? I have
 another FreeBSD 8.1 install on an exact duplicate server, except it has
 a half the memory, with no errors. This ESXi server with the error has
 12GB RAM and these servers do not use RAID at all.

Late reply, saw this when wading through the list looking for mpt.

Had similar during the weekend.

mpt0: attempting to abort req 0xff80003cf510:10337 function 0
mpt0: abort of req 0xff80003cf510:10337 completed

mpt0: LSILogic 1030 Ultra4 Adapter port 0x5000-0x50ff mem
0xfdfe-0xfdff,0xfdfc-0xfdfd irq 74 at device 1.0 on pci6

The card connects a tape library to our backup server, a DL380 G4,
8.1-STABLE-201011 amd64, ZFS, 8G RAM.

--
per
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a perl question

2011-01-04 Thread Devin Teske
On Tue, 2011-01-04 at 22:12 +, RW wrote:
 On Tue, 4 Jan 2011 10:01:47 -0800
 Devin Teske dte...@vicor.com wrote:
 
  
  On Jan 4, 2011, at 9:33 AM, Randal L. Schwartz wrote:
  
   Patrick == Patrick Bihan-Faou
   patrick.bihan-f...@teambox.fr writes:
   
   Patrick cat asdf.txt | grep -v XYZ | grep -v bla
   
   And yet, you still have the Useless Use of Cat.
  
  I know I'm joining the party late, but... what about:
  
  grep -Ev '(XYZ|bla)' asdf.txt
  
  or
  
  awk '!/XYZ/  !/bla/ {print}' asdf.txt
  
  ok... end useless contribution.
 
 It's odd that people seem to be taking bla-bla so literally, when it's
 clearly a place holder for arbitary text. 

Maybe because the OP should have said:

How do I get the text between [XYZ] and [/XYZ]

A demarcing field-search is different than a pruning line-search.

This is what the OP was looking for:

awk -v tag=XYZ '
BEGIN { buf =  }
$0 ~ \\[tag\\], $0 ~ \\[/tag\\] \
{
if ( match($0, \\[/tag\\]) ) \
{
buf = buf substr($0, 0, RSTART - 1)
sub(.*\\[tag\\], , buf)
sub(/^\n*/, , buf)
sub(/\n*$/, , buf)
print buf
buf = 
next
} else
buf = buf $0\n
}
END { if ( length(buf) ) print buf }' asdf.txt

or, if you would prefer to have it all on one line:

awk -v tag=XYZ 'BEGIN { buf =  } $0 ~ \\[tag\\], $0 ~ \\[/tag\
\] { if ( match($0, \\[/tag\\]) ) { buf = buf substr($0, 0, RSTART
- 1); sub(.*\\[tag\\], , buf); sub(/^\n*/, , buf); sub(/\n*$/,
, buf); print buf; buf = ; next } else buf = buf $0\n } END { if
( length(buf) ) print buf }' asdf.txt

or, if you would like it as an alias:

for bash...

alias between_xyz='awk -v tag=XYZ '\''BEGIN { buf =  } $0 ~ \\[tag\
\], $0 ~ \\[/tag\\] { if ( match($0, \\[/tag\\]) ) { buf = buf
substr($0, 0, RSTART - 1); sub(.*\\[tag\\], , buf); sub(/^\n*/,
, buf); sub(/\n*$/, , buf); print buf; buf = ; next } else buf =
buf $0\n } END { if ( length(buf) ) print buf }'\'

for csh:

alias between_xyz 'awk -v tag=XYZ '\''BEGIN { buf =  } $0 ~ \\[tag\
\], $0 ~ \\[/tag\\] { if ( match($0, \\[/tag\\]) ) { buf = buf
substr($0, 0, RSTART - 1); sub(.*\\[tag\\], , buf); sub(/^\n*/,
, buf); sub(/\n*$/, , buf); print buf; buf = ; next } else buf =
buf $0\n } END { if ( length(buf) ) print buf }'\'

Usage:

between_xyz asdf.txt

Of course, this can even be improved upon further...

As a shell function:

# between $what $file [$file ...]
#
# Split out lines between [$what] and [/$what] using awk(1).
#
between()
{
awk -v tag=$1 '
BEGIN { buf =  }
$0 ~ \\[tag\\], $0 ~ \\[/tag\\] \
{
if ( match($0, \\[/tag\\]) ) \
{
buf = buf substr($0, 0, RSTART - 1)
sub(.*\\[tag\\], , buf)
sub(/^\n*/, , buf)
sub(/\n*$/, , buf)
print buf
buf = 
next
} else
buf = buf $0\n
}
END { if ( length(buf) ) print buf }
' $@
}

Or, for those csh users, how about a fancy alias?:

alias between 'awk -v tag=\!^ '\''BEGIN { buf =  } $0 ~ \\[tag\
\], $0 ~ \\[/tag\\] { if ( match($0, \\[/tag\\]) ) { buf = buf
substr($0, 0, RSTART - 1); sub(.*\\[tag\\], , buf); sub(/^\n*/,
, buf); sub(/\n*$/, , buf); print buf; buf = ; next } else buf =
buf $0\n } END { if ( length(buf) ) print buf }'\'' \!:2-$'

Usage:

between XYZ asdf.txt

AND... (lol)... last but not least...

If you want to have case-insensitivity, you'll have to change:

BEGIN { buf =  }

to:

BEGIN { IGNORECASE = 1; buf =  }


NOTE: FYI, when you need to grab text that spans multiple lines between
two field delimiters, C/C++ is superior to perl/awk which excel at line-
based I/O versus block I/O. However, I conclude that the OP wanted
something that was executable from the command-line (considering that
he/she actually gave a basic construct for a perl one-liner (which might
as well be an awk one-liner considering FreeBSD doesn't come with Perl
in the base anymore and thus not every machine is guaranteed to have
perl -- while every machine has awk).

ANOTHER NOTE: The above is not intended to start a language flame-war...
just an observation. If you have observed an easy _and_ convenient
method that _does_ use perl/awk (in a manner more efficient than the
above), I'm sure the OP/list would love it. Otherwise, I really do view
this operation as being easier in C using functions like strchr,
strrchr, etc.
-- 
Cheers,
Devin Teske

- CONTACT INFORMATION -
Business Solutions Consultant II
FIS - fisglobal.com
510-735-5650 Mobile
510-621-2038 Office
510-621-2020 Office Fax
909-477-4578 Home/Fax
devin.te...@fisglobal.com

- LEGAL DISCLAIMER -
This message  

/usr/local/man/man1 wiped out

2011-01-04 Thread Alexander Best
hi there,

i'm not sure what happend here. i updated a few ports the other day using
'portupgrade -a'. nothing special really. today however i notice some manual
pages like gcc46 are missing. so i checked the contents of /usr/local/man/man1
and this is what i found:

total 1
drwxr-xr-x   2 root  wheel  1024  4 Jan 14:00 .
drwxr-xr-x  39 root  wheel  1024  3 Jan 03:27 ..
-r--r--r--   1 root  wheel  2075  4 Jan 13:59 ImageMagick.1.gz
-r--r--r--   1 root  wheel  1304  4 Jan 13:59 Magick++-config.1.gz
-r--r--r--   1 root  wheel   671  4 Jan 13:59 Magick-config.1.gz
-r--r--r--   1 root  wheel   674  4 Jan 13:59 MagickCore-config.1.gz
-r--r--r--   1 root  wheel   679  4 Jan 13:59 MagickWand-config.1.gz
-r--r--r--   1 root  wheel   674  4 Jan 13:59 Wand-config.1.gz
-r--r--r--   1 root  wheel  1999  4 Jan 13:59 animate.1.gz
-r--r--r--   1 root  wheel  1852  4 Jan 14:00 bdftopcf.1.gz
-r--r--r--   1 root  wheel  1538  4 Jan 13:59 compare.1.gz
-r--r--r--   1 root  wheel  2200  4 Jan 13:59 composite.1.gz
-r--r--r--   1 root  wheel   895  4 Jan 13:59 conjure.1.gz
-r--r--r--   1 root  wheel  4587  4 Jan 13:59 convert.1.gz
-r--r--r--   1 root  wheel  2661  4 Jan 13:59 display.1.gz
-r--r--r--   1 root  wheel  1656  4 Jan 13:59 identify.1.gz
-r--r--r--   1 root  wheel  2105  4 Jan 13:59 import.1.gz
-r--r--r--   1 root  wheel  4665  4 Jan 13:59 mogrify.1.gz
-r--r--r--   1 root  wheel  2562  4 Jan 13:59 montage.1.gz
-r--r--r--   1 root  wheel  2129  4 Jan 04:06 portaudit.1.gz
-r--r--r--   1 root  wheel  1357  4 Jan 13:59 stream.1.gz
-r--r--r--   1 root  wheel  2431  3 Jan 03:39 xdg-desktop-icon.1.gz
-r--r--r--   1 root  wheel  4345  3 Jan 03:39 xdg-desktop-menu.1.gz
-r--r--r--   1 root  wheel  1790  3 Jan 03:39 xdg-email.1.gz
-r--r--r--   1 root  wheel  2512  3 Jan 03:39 xdg-icon-resource.1.gz
-r--r--r--   1 root  wheel  2509  3 Jan 03:39 xdg-mime.1.gz
-r--r--r--   1 root  wheel   951  3 Jan 03:39 xdg-open.1.gz
-r--r--r--   1 root  wheel  1326  3 Jan 03:39 xdg-screensaver.1.gz

i have over 500 ports installed and now every manual page which was installed
before running 'portupgrade -a' has been wiped out. :(

can the following have caused some kind of problems?

otaku% file /usr/local/share/man 
/usr/local/share/man: symbolic link to `../man'
otaku% file /usr/local/man
/usr/local/man: directory

manual pages in other directories, like /usr/local/man/man8 don't seem to have
been scrubbed. only the section 1 manuals.

cheers.
alex

-- 
a13x
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


best way to rebuild all perl ports

2011-01-04 Thread jamie
hi everyone

When i installed FreeBSD 8.1 the other day i was just going to keep it a 
console-based system with no X just to do a bit of coding and stuff. I then 
installed perl 5.12. 

A few days later I changed my mind and installed X with a window manager and a 
few other things. Somehow - not sure when and why - one of the ports installed 
perl 5.10 as a dependancy setting itself as the default perl installation for 
the system so i ended with a mix of ports build against different perl 
versions. 

I've mostly fixed this by doing a: 

`env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.12 -f perl-5.10.\*` 

followed by:
 
`portupgrade -fr perl` (which didn't do anything :-/ ) 

or at least i thought i had, but it seems there are a few perl modules that 
aren't behaving and i think i need to just rebuild all the perl stuff again. I 
wondered, should i do this and if so if there's a particular ports-management 
tool that would be best suited to this?


jamie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: best way to rebuild all perl ports

2011-01-04 Thread ill...@gmail.com
On 4 January 2011 20:11,  ja...@gnix.co.uk wrote:
 hi everyone

 When i installed FreeBSD 8.1 the other day i was just going to keep it a 
 console-based system with no X just to do a bit of coding and stuff. I then 
 installed perl 5.12.

 A few days later I changed my mind and installed X with a window manager and 
 a few other things. Somehow - not sure when and why - one of the ports 
 installed perl 5.10 as a dependancy setting itself as the default perl 
 installation for the system so i ended with a mix of ports build against 
 different perl versions.

 I've mostly fixed this by doing a:

        `env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.12 -f perl-5.10.\*`

 followed by:

        `portupgrade -fr perl` (which didn't do anything :-/ )

 or at least i thought i had, but it seems there are a few perl modules that 
 aren't behaving and i think i need to just rebuild all the perl stuff again. 
 I wondered, should i do this and if so if there's a particular 
 ports-management tool that would be best suited to this?


Do you have PERL_VERSION= set correctly in /etc/make.conf?


-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: best way to rebuild all perl ports

2011-01-04 Thread jamie
 Do you have PERL_VERSION= set correctly in /etc/make.conf?

This was set automatically when i first installed perl5.12. This line was later 
over-written when perl5.10 was installed. Since i used portupgrade to change 
back to perl5.12 this line has been set correctly. Susbsequent ports i've 
installed that require perl have been built against 5.12.

jamie
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a new hard-drive in a 2y/o laptop

2011-01-04 Thread Warren Block

On Tue, 4 Jan 2011, Chris Brennan wrote:


On Tue, Jan 4, 2011 at 3:56 AM, Ian Smith smi...@nimnet.asn.au wrote:


On Mon, 3 Jan 2011 16:31:17 -0500, Chris Brennan wrote:
[.. trimming ccs, selectively quoting and de-gmailing a bit ..]



Trimmings! Oh nevermind. I don't know what possessed me to  go and look
at the debug window. But I do and I see the following.

GEOM: ad4: the primary GPT table is corrupt or invalid.
GEOM: ad4: using the secondary instead -- recovery strongly advised.

This is even after zero the beginning and the end of the drive 
Something is hinky!


Today I also found that zeroing the beginning and end of the drive 
didn't seem to be enough.  I had the start of a huffy email about how 
hard it was to calculate the end of a drive in blocks, and how dd didn't 
have a negative oseek to seek backwards from the end.  But then I 
checked gpart(8)... and it turns out that


# gpart destroy -F da0

works.  Be very careful that you've got the right drive there, of 
course.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a new hard-drive in a 2y/o laptop

2011-01-04 Thread Chris Brennan
On Tue, Jan 4, 2011 at 8:44 PM, Warren Block wbl...@wonkity.com wrote:

 On Tue, 4 Jan 2011, Chris Brennan wrote:

  On Tue, Jan 4, 2011 at 3:56 AM, Ian Smith smi...@nimnet.asn.au wrote:

  On Mon, 3 Jan 2011 16:31:17 -0500, Chris Brennan wrote:
 [.. trimming ccs, selectively quoting and de-gmailing a bit ..]


 Trimmings! Oh nevermind. I don't know what possessed me to  go and look
 at the debug window. But I do and I see the following.

 GEOM: ad4: the primary GPT table is corrupt or invalid.
 GEOM: ad4: using the secondary instead -- recovery strongly advised.

 This is even after zero the beginning and the end of the drive 
 Something is hinky!


 Today I also found that zeroing the beginning and end of the drive didn't
 seem to be enough.  I had the start of a huffy email about how hard it was
 to calculate the end of a drive in blocks, and how dd didn't have a negative
 oseek to seek backwards from the end.  But then I checked gpart(8)... and it
 turns out that

 # gpart destroy -F da0

 works.  Be very careful that you've got the right drive there, of course.


Fixit# gpart destroy -F /dev/node# says

gpart: illegal option -- F

it would appear that the gpart on the 8.1-RELEASE and 8.2BETA1 images do not
contain this switch and I get pattern not found when I search 'man 8 gpart'
... there is a '-f flags' but no mention of '-F'

C-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a perl question

2011-01-04 Thread Randal L. Schwartz
 RW == RW  rwmailli...@googlemail.com writes:

RW It's odd that people seem to be taking bla-bla so literally, when it's
RW clearly a place holder for arbitary text. 

That's the problem when you provide an example instead of a rule.  But
oddly enough, once you figure out the actual rule, translating that into
a program is generally rather mechanical.  Hence the irony of such
questions.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a new hard-drive in a 2y/o laptop

2011-01-04 Thread Ian Smith
On Tue, 4 Jan 2011, Warren Block wrote:
  On Tue, 4 Jan 2011, Chris Brennan wrote:
  
   On Tue, Jan 4, 2011 at 3:56 AM, Ian Smith smi...@nimnet.asn.au wrote:
   
On Mon, 3 Jan 2011 16:31:17 -0500, Chris Brennan wrote:
[.. trimming ccs, selectively quoting and de-gmailing a bit ..]

   
   Trimmings! Oh nevermind. I don't know what possessed me to  go and look
   at the debug window. But I do and I see the following.
   
   GEOM: ad4: the primary GPT table is corrupt or invalid.
   GEOM: ad4: using the secondary instead -- recovery strongly advised.
   
   This is even after zero the beginning and the end of the drive 
   Something is hinky!

Indeed.  Well Chris attached the following to his prior email, which 
made it to the list being text, dmesg didn't, application/octet-stream: 
http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110104/c370dd77/dmesg-0001.obj

But confirming the GEOM messages shown above, here's the 'smoking gun':

  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ||
*
4000  45 46 49 20 50 41 52 54  00 00 01 00 5c 00 00 00  |EFI PART\...|
4010  2b b3 b7 fa 00 00 00 00  ef 66 54 57 00 00 00 00  |+fTW|
4020  01 00 00 00 00 00 00 00  22 00 00 00 00 00 00 00  |...|
4030  ce 66 54 57 00 00 00 00  45 51 13 4c 0e 0e e0 11  |.fTWEQ.L|
4040  95 6e 00 1d 72 5b f5 d6  cf 66 54 57 00 00 00 00  |.n..r[...fTW|
4050  80 00 00 00 80 00 00 00  86 d2 54 ab 00 00 00 00  |..T.|
4060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ||
*
4200

So that is really the last 33 sectors of the disk (0x4200 = 16896d, / 
512 = 33) and the last sector does indeed have the 'GPT EFI' signature 
(ref: http://en.wikipedia.org/wiki/GUID_Partition_Table), so the seek 
and count looks right, matching the read command I'd suggested:

   dd if=/dev/ad4 iseek=1465149135 count=33 | hd

Seems odd that it hasn't been zeroed, but all the sectors before it are 
(ie there's just the header, no actual 128-byte partition entries if I'm 
interpreting this correctly), so maybe there's still some off-by-one in 
counting from the end of the disk for writing, not knowing the actual dd 
command used .. you're not wrong that negative offsets can be tricky!

  Today I also found that zeroing the beginning and end of the drive didn't
  seem to be enough.  I had the start of a huffy email about how hard it was to
  calculate the end of a drive in blocks, and how dd didn't have a negative
  oseek to seek backwards from the end.  But then I checked gpart(8)... and it
  turns out that
  
  # gpart destroy -F da0
  
  works.  Be very careful that you've got the right drive there, of course.

Saw Chris' later message that -F isn't there for him, but here's what 
should be, on the data, the sure-fire way to clobber that last sector:

 dd if=/dev/zero of=/dev/ad4 oseek=1465149167

which command SHOULD report just 512 bytes written (we're sure it can't 
write past the end of the disk with no count specified), after which:

 dd if=/dev/ad4 iseek=1465149167 | hd

SHOULD show zeroes from  to 01ff (ie next block 0200)
If not, there really must be some hardware issue with writing?

Hopefully getting there!

cheers, Ian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a perl question

2011-01-04 Thread Chad Perrin
On Tue, Jan 04, 2011 at 09:33:03AM -0800, Randal L. Schwartz wrote:
  Patrick == Patrick Bihan-Faou patrick.bihan-f...@teambox.fr writes:
 
 Patrick cat asdf.txt | grep -v XYZ | grep -v bla
 
 And yet, you still have the Useless Use of Cat.

The weirdest thing about most useless uses of cat is that not using cat
would actually be a little clearer and involve fewer keystrokes -- as in
this case.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpaBZTKvL8ix.pgp
Description: PGP signature