CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Broken pipe stumps me

 



seamanrob2004
Novice


Jan 6, 2007, 6:17 AM

Post #1 of 5 (540 views)
Broken pipe stumps me Can't Post

Hi guys,

I have a set of scripts that write over a network drive (running windows) to a central location.
Problem is, ever since I upgraded to IE7 (which ive been avoiding for a while now) the following message appears in my error log:


Quote
cannot open file for saving table change at shopfloor.pl line 1234.
CGI: [C:\Perl\bin\Perl.exe shopfloor.pl terminal1&OK&520 ] URI: /POS/shopfloor.pl?terminal1&OK&520 Broken pipe



I have two subroutines affected by this error, and it only affects my personal laptop and connection, the two other machines running this program and on older versions of both windows and IE are fine.

the part of the script this error refers to is:


Quote
open (FILE, ">$savelocation/orders/$third.ord") or die "cannot open file for saving table change";
print FILE @data;
close FILE;



thats simple enough. basically, this routine opens up a flat file, changes some info in it and resaves it. If I create new order files it works fine from all machines, but this one in question is now 2 days old. all the information is in tact by the time it reaches this point so I cant see any problems that should be arising.
the file creation date is the only wildcard i can see.

Stumped. Any ideas?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
veritas vos liberabit ~ The truth shall set you free


KevinR
Veteran


Jan 6, 2007, 11:55 AM

Post #2 of 5 (535 views)
Re: [seamanrob2004] Broken pipe stumps me [In reply to] Can't Post

Perl is opening that file not the browser. Maybe an IE7 network/security setting or something like that?
-------------------------------------------------


seamanrob2004
Novice


Jan 7, 2007, 7:35 AM

Post #3 of 5 (529 views)
Re: [KevinR] Broken pipe stumps me [In reply to] Can't Post

Its bizarre!

It only affects files that are written the previous days. All the files created on the same day work fine. I can unlink all of them from my laptop but I cant access and modify them.
I cant see any reason why the settings in IE should make a difference. It still calls the script on the other machine. The other machines perl interpreter is doing the work, and if I use the other machine to do the same task, it does it without hitch.

Fortunately, its not crucial to the operation of the system - but its a bug I'd like to get sorted at some point.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
veritas vos liberabit ~ The truth shall set you free


KevinR
Veteran


Jan 7, 2007, 12:37 PM

Post #4 of 5 (527 views)
Re: [seamanrob2004] Broken pipe stumps me [In reply to] Can't Post

you mentioned the file creation date in your original post yet the code you posted is just opening a file:


Code
 open (FILE, ">$savelocation/orders/$third.ord") or die "cannot open file for saving table change"; 
print FILE @data;
close FILE;


I'm not sure what the broken pipe error message is trying to indicate. Maybe someone at www.perlmonks.com can help you with this question.
-------------------------------------------------


seamanrob2004
Novice


Jan 22, 2007, 8:38 AM

Post #5 of 5 (519 views)
Re: [KevinR] Broken pipe stumps me [In reply to] Can't Post

Kevin,

In the end I changed servers. Now using Abyss webserver on Windows and thats doing a good job.

Was using Xerver before that. But since hes updated and "bugfixed" it its worse than ever.

No problems under Abyss!
Thanks for the suggestions!

Rob

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
veritas vos liberabit ~ The truth shall set you free

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives