|
Hi all,
I have a perl script that I run that processes log files for
multiple virtual hosts sequentially. The problem I am running into is
getting Analog 4.0 to recognize the variable that the perl script is
using. It worked fine for Analog 2.11, but I cannot seem to get it to work
for 4.0. Here's the script in question:
#!/usr/local/bin/perl
@doit=<`pwd`/*log>;
#if !(-e hits) {
# print "Generating general hit report \"hits\"\n"; # system("wc -l *_log > hits"); # print "Done.\n\n"; #} foreach $let (@doit) { $se=$let; $se=~s/\_log/\.sta/; if ($se eq $let) {
print "Outfile equals infile! Skipping.\n"; } else { print "Doing $let\n"; `../analog/analog -n '$let' > $se`; } }
As you can see, the variable is $let which is what I specify
for HOSTNAME in anlghead.h, but it only prints the variable's name itself and
not the value it is supposed to hold.
Thanks for any help you all might be able to
provide
Erik
|
- Re: [analog-help] Variables Erik Kremsreiter
- Re: [analog-help] Variables Stephen Turner
- Re: [analog-help] Variables Erik Kremsreiter
- Re: [analog-help] Variables Erik Kremsreiter
- Re: [analog-help] Variables djkaur
- [analog-help] Drondoe,Adrian
- Re: [analog-help] Stephen Turner
