[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030328: A problem with ldm starting: split-loop bug
- Subject: 20030328: A problem with ldm starting: split-loop bug
- Date: Fri, 28 Mar 2003 13:36:22 -0700
David,
> To: <address@hidden>
> From: "David Wojtowicz" <address@hidden>
> Subject: Re: 20021206: A problem with ldm starting
> Organization: UCAR/Unidata
The above message contained the following:
> Re the problem with "split loop" errors. I just ran into this on a new
> install of LDM 6.0.2. on an RH8.0 machine (previous installs are on 7.2
> machines)
>
>
> > ( @QUEUES ) = split( "[ \t\n]+", `ls $pq_path` );
> > if($#QUEUES==-1) {
>
> I didn't see a resolution in the archives. In the two places it is used in
> ldmadmin it seems that the only purpose is to check for the existance of the
> pq file. Wouldn't it be more efficient (than spawning a ls process) and
> avoid the mysterious split loop error to just use a file test:
>
> if(! -f $pq_path) {
> # so something
> }
>
> Just a suggestion. That's how I patched mine and it works fine.
I'm not a perl expert and I didn't write the ldmadmin script (although I
now maintain it) so thank you very much for sending this in.
It'll be in the next release.
> David Wojtowicz, Sr. Research Programmer
> Department of Atmospheric Sciences Computer Services
> address@hidden (217) 333-8390
Regards,
Steve Emmerson