Re: script debug help

2002-09-05 Thread John W. Krahn
Mike Singleton wrote: > > Yes, I agree that it very hard to read, and next to impossible to debug. I > appreciate everyone's comments very much. I will use your troubleshooting > method, but the kicker is the the damned backup program write these random > log file names (thus the my @files = glob

Re: script debug help

2002-09-05 Thread Mike Singleton
Yes, I agree that it very hard to read, and next to impossible to debug. I appreciate everyone's comments very much. I will use your troubleshooting method, but the kicker is the the damned backup program write these random log file names (thus the my @files = glob('3*.log');), so I could only thi

Re: script debug help

2002-09-04 Thread John W. Krahn
David wrote: > > John W. Krahn wrote: > > > >> $current = $line[14]; > >> $jobid[$njob++] = $current; > >> $starttime{$current} = $line[2] . " "; > >> $starttime{$current} .= $line[3] . " "; > >> $starttime{$current} .= $line[4] . " "; > >> $starttime{$current} .= $line[5] . " "; > >> $sta

Re: script debug help

2002-09-04 Thread david
your script is very hard to read. :-) if you know where the problem might be, it's better to just post the section of code that might be failing. posting the whole file with lots of log lines make it hard to read. it seems to me that you just want the log lines that contain a certain reg. ex

Re: script debug help

2002-09-04 Thread Michael Fowler
On Wed, Sep 04, 2002 at 04:44:39PM -0700, david wrote: > John W. Krahn wrote: [snip] > > $starttime{$current} = join ' ', @line[2 .. 6]; > > or you could remove the need for join all together: > > $starttime{$current} = "@line[2..6]"; That doesn't really remove the join, it just makes it impl

Re: script debug help

2002-09-04 Thread david
John W. Krahn wrote: > >> $current = $line[14]; >> $jobid[$njob++] = $current; >> $starttime{$current} = $line[2] . " "; >> $starttime{$current} .= $line[3] . " "; >> $starttime{$current} .= $line[4] . " "; >> $starttime{$current} .= $line[5] . " "; >> $starttime{$current} .= $line[6]; >

Re: script debug help

2002-09-04 Thread John W. Krahn
Mike Singleton wrote: > > This script will ultimately return the values of the regex strings for > successful backup. I am stumped right now as how to proceed, as the script > seems to run without error, yet return nothing. > > == Log File = > 172.16.54.132 ssjobhnd Thu Jun 27 02:00:01 2

script debug help

2002-09-04 Thread Mike Singleton
This script will ultimately return the values of the regex strings for successful backup. I am stumped right now as how to proceed, as the script seems to run without error, yet return nothing. == Log File = 172.16.54.132 ssjobhnd Thu Jun 27 02:00:01 2002 SNBJH_3075J Syncsort Backup Expre