Re: Find - Sillyness

2009-01-23 Thread Morris, Roy
This worked! You da man! thanks much. -Original Message- From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org]on Behalf Of Daniel A. Ramaley Sent: Friday, January 23, 2009 9:56 AM To: misc@openbsd.org Subject: Re: Find - Sillyness On Friday January 23 2009 08:07, you wrote: >I

Re: Find - Sillyness

2009-01-23 Thread Lyndon Nerenberg
spider:/var/logtransfer/dc-fw1# find . -name pflog.*.gz -exec zcat {} | tcpdump -entttv -r - \; find: -exec: no terminating ";" Find -exec invokes the command directly using exec(2). There's no shell underlying the command, so pipes are out (even if you had correctly escaped the '|'). The e

Re: Find - Sillyness

2009-01-23 Thread Daniel A. Ramaley
On Friday January 23 2009 08:07, you wrote: >I am sure it's got something to do with the way I am quoting but it's >not making a lot of sense at this point. > >Here is the actual command I am trying to run and it's error >output. > >spider:/var/logtransfer/dc-fw1# find . -name pflog.*.gz -exec zcat

Re: Find - Sillyness

2009-01-23 Thread Morris, Roy
Ok, I tried both and neither worked. Same error doh! -Original Message- From: Nick Bender [mailto:nben...@gmail.com] Sent: Friday, January 23, 2009 9:21 AM To: Morris, Roy Cc: misc@openbsd.org Subject: Re: Find - Sillyness On Fri, Jan 23, 2009 at 9:07 AM, Morris, Roy wrote: > Here

Re: Find - Sillyness

2009-01-23 Thread Nick Bender
On Fri, Jan 23, 2009 at 9:07 AM, Morris, Roy wrote: > Here is the actual command I am trying to run and it's error > output. > > spider:/var/logtransfer/dc-fw1# find . -name pflog.*.gz -exec zcat {} | > tcpdump -entttv -r - \; > find: -exec: no terminating ";" > tcpdump: fread: Invalid argument >

Re: Find - Sillyness

2009-01-23 Thread Morris, Roy
PM To: misc@openbsd.org Subject: Re: Find - Sillyness On Thu, Jan 22, 2009 at 02:54:21PM -0500, Morris, Roy wrote: > I know this is more of a general 'huh' kind of thing, but I figured someone > could kick start my brain for me. Anyone know why this doesn't work? It > appe

Re: Find - Sillyness

2009-01-22 Thread System Administrator
On 22 Jan 2009 at 14:54, Morris, Roy wrote: > I know this is more of a general 'huh' kind of thing, but I figured someone > could kick start my brain for me. Anyone know why this doesn't work? It > appears to find the files ok but the -exec part thinks it can't? > > > spider:/var/log# find . -na

Re: Find - Sillyness

2009-01-22 Thread John Jackson
On Thu, Jan 22, 2009 at 02:54:21PM -0500, Morris, Roy wrote: > I know this is more of a general 'huh' kind of thing, but I figured someone > could kick start my brain for me. Anyone know why this doesn't work? It > appears to find the files ok but the -exec part thinks it can't? > > > spider:/var

Re: Find - Sillyness

2009-01-22 Thread Daniel A. Ramaley
Remove the quotes from "echo {}". The "No such file or directory" error is because find cannot run a program named "echo ./daemon.2.gz". Remove the quotes and it will try to run "echo" with an argument of "daemon.2.gz". On Thursday January 22 2009 13:54, you wrote: >I know this is more of a gen

Re: Find - Sillyness

2009-01-22 Thread Chris Kuethe
do you have any programs called "echo ./daemon.2.gz"? you want -exec echo "{}" \; On Thu, Jan 22, 2009 at 12:54 PM, Morris, Roy wrote: > I know this is more of a general 'huh' kind of thing, but I figured someone > could kick start my brain for me. Anyone know why this doesn't work? It > appears

Find - Sillyness

2009-01-22 Thread Morris, Roy
I know this is more of a general 'huh' kind of thing, but I figured someone could kick start my brain for me. Anyone know why this doesn't work? It appears to find the files ok but the -exec part thinks it can't? spider:/var/log# find . -name "daemon.*.gz" -exec "echo {}" \; find: echo ./daemon.2