in reply to 'open for read' fails as "no such file or directory" but file is there
A different strange thing happens now.
If I run the script for each $i individually, for example ($i=1; $i<=1 $i++) or ($i=2; $i<=2; $i++) etc, everything is correct and fine. If I run it for $i from 1 to 5 , ($i=1; $i<=5; $i++) , I get the following errors, starting when the script has finished running $i=1, so from $i=2 onwards:
Argument "Angle:" isn't numeric in sprintf at auto-dash.pl line 51, <$ +input> line 200035. Argument "RB-A1=-1.46"" isn't numeric in sprintf at auto-dash.pl line +51, <$input> line 200035. Argument "label" isn't numeric in sprintf at auto-dash.pl line 47, <$i +nput> line 200036. Argument ""Time" isn't numeric in sprintf at auto-dash.pl line 51, <$i +nput> line 200036. Argument "(ps)"" isn't numeric in sprintf at auto-dash.pl line 51, <$i +nput> line 200036. Argument "label" isn't numeric in sprintf at auto-dash.pl line 47, <$i +nput> line 200037. Argument ""Angle" isn't numeric in sprintf at auto-dash.pl line 51, <$ +input> line 200037. etc *more same lines that go up to <$input> line 400064*
Also these arguments that it's finding as wrong belong in the first 12 lines of each input file, that it's meant to skip.
My inputs have only 100001 lines, so for it to say that it's finding errors on line 200000 is by itself strange as there is no such line. This tells me it's somehow creating (??) an input with more lines? Does that again have to do with how I use the open command?
Please let me know if I've managed to explain this properly or not as I would appreciate any advice on how to solve this :'(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 'open for read' fails as "no such file or directory" but file is there
by Eily (Monsignor) on Nov 02, 2016 at 17:28 UTC |