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