• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

ATTN: Pproxy operators; great little script in here for auto-updating By Host section.

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
I tried this script in debug mode and it gave me this error? Any ideas?

D:\stats>perl -w stripcache.pl
syntax error at stripcache.pl line 104, next char )
Execution of stripcache.pl aborted due to compilation errors.
 
Russ,

It sounds like a path problem of some kind. My company did our earnings release today and my brain is fried right now, but I'll try and take a look at the way the path is determined. cron might assume a different root directory that isn't being picked up by the script.

Either that, or there's something weird about the permission setting for the ini file.

Too tired to think about it today ...

Michael
 
CLL Sr,

I'm going to take a wild guess on yours and postulate that you have an extra carriage return in the script. You might try a fresh copy and see what happens.

Michael,

Paths and permissions are the first thing that I thought of. But, they are set the same as they are for two other scripts that I'm cronning in that directory.

Russ, NCNE
 
Well Russ I took your recommendation and now I get a different error.


D:\stats>perl -w stripcache.pl
Unrecognized escape \s passed through at stripcache.pl line 15.
Unrecognized escape \s passed through at stripcache.pl line 30.
Name "main::sec" used only once: possible typo at stripcache.pl line 41.
Name "main::isdst" used only once: possible typo at stripcache.pl line 41.
Name "main::min" used only once: possible typo at stripcache.pl line 41.
Name "main::hour" used only once: possible typo at stripcache.pl line 41.
Name "main::wday" used only once: possible typo at stripcache.pl line 41.
Name "main::yday" used only once: possible typo at stripcache.pl line 41.
c5-dns.cachecachefile: D:stats

Any other ideas?
 
Well, the first two lines are WAY over my head. The typo stuff doesn't matter; I get it on mine also, but it still works.

Russ, NCNE
 
Russ could you possibly either email or post a portion of your "cacheini".

When I run the script I only get a blank page with my totals.

I have to get back to work for now.

I'll check into this more tonight.
Thanks everyone.
 
Russ: the "$inifile =" entry needs a complete path, too. According to your output yours doesn't have that.

CLL Sr: When run onder windows, all slashes in your path setting need to be double ones, eg $rc5cache = "I:\\logs\\rc5-dns.cache";
Your errors look like you have something like $rc5cache = "I:/stats/rc5-dns.cache";


 
Pinball,

Yep, that was it. I assumed that since I popped it in to the same directory as the affected files, the full path wasn't necessary. It didn't dawn on my thick head that since cron executes from a different directory, it would need the path.

Crons like a champ, now. Thanks!😀

Russ, NCNE
 
Ok I changed the path entries. I am going to post some of my ini file and see if it is right.

205.216.90,radiks.net
63.239,dwx.net
24.22.229,GreenValley
24.187.159,Jennifer
63.224,Angie

Does this look like it should?

The new error is long.

Use of uninitialized value in join at stripcache.pl line 64, <LEES> line 137.
Use of uninitialized value in concatenation (.) at stripcache.pl line 69, <LEES>
line 137.
Use of uninitialized value in join at stripcache.pl line 64, <LEES> line 138.
Use of uninitialized value in concatenation (.) at stripcache.pl line 69, <LEES>
line 138.
Use of uninitialized value in join at stripcache.pl line 64, <LEES> line 139.
Use of uninitialized value in concatenation (.) at stripcache.pl line 69, <LEES>
line 139.
Use of uninitialized value in join at stripcache.pl line 64, <LEES> line 140.
Use of uninitialized value in concatenation (.) at stripcache.pl line 69, <LEES>
line 140.
Use of uninitialized value in join at stripcache.pl line 64, <LEES> line 141.
Use of uninitialized value in concatenation (.) at stripcache.pl line 69, <LEES>
line 141.
Use of uninitialized value in join at stripcache.pl line 64, <LEES> line 142.
Use of uninitialized value in concatenation (.) at stripcache.pl line 69, <LEES>
line 142.

I can't tell on what line it starts but it ends on line 155.
 
CLL Sr,

HeHe. I recognize that one. You have blank space somewhere in the ini file. (I think - see my similar post above).

Russ, NCNE
 
Here I was just about to say my brain is working again and you need to path to the ini file and pinball beats me to it <grin>.

Michael
 
By George I think I've got it! Not without your welcomed help. Thanks to all who posted.

p.s. It looks so much nicer and I don't have to remember all those numbers.🙂

see for yourselfhere.
 
Back
Top