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

Reply via email to