At 04:33 PM 6/20/01 -0400, Yacketta, Ronald wrote:
>exec "egrep -c $lookFor @{$LOGS[$_ - 1]} >out" unless $pid=fork; # fork new
>process for cmd
>
>
>results in:
>
>sh: Fault: not found
>egrep: can't open App
>egrep: can't open Finished
>sh: Bind: not found
>sh: SystemError: not found
Oh great, you've got filenames with spaces in. Try this:
exec "egrep -c '$lookFor' \Q@{$LOGS[$_ - 1]}\E >out"
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
- exec() Yacketta, Ronald
- Re: exec() Paul
- Re: exec() Eduard Grinvald
- RE: exec() Yacketta, Ronald
- RE: exec() Peter Scott
- Re: exec() Michael Fowler
- RE: exec() Yacketta, Ronald
- exec() Peter Scott
- exec() Willem Pretorius
- Re: exec() Tim Musson
- RE: exec() NYIMI Jose (BMB)
