in reply to tail -f multiple nfs files
That is the block that worries/confuses me. I notice on the first file you open prior to the for loop you remove the first line that may be invalid. I don't see any code verifying the other lines coming into the script. That is no test for the correct number of array elements. Could there be bad lines in the data feed that aren't accounted for?if (-e $NEXT_FILE){ sleep 3; #SLEEP TO ALLOW OS TO SYNC UP close(ACCT); $DETAIL_FILE = $NEXT_FILE; open (ACCT, "$DETAIL_FILE") || die "couldn't open f +ile: $!\n"; $NEXT_FILE = get_next_file_name($DETAIL_FILE); next; #NEXT FILE DOESN'T EXISTS, SO SLEEP AND TRY AGAIN }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: tail -f multiple nfs files
by Anonymous Monk on Feb 02, 2002 at 01:43 UTC | |
by trs80 (Priest) on Feb 02, 2002 at 01:52 UTC |