LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-21-2011, 02:40 PM   #1
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Rep: Reputation: 53
perl execution


I think I finally figured out why, when running a test script from my browser (IE), repetitively, it would write once but not again when I requested it again. It would reload the intended response to the user, but wouldn't append the text file. Finally I tried running the script from another tab in my browser and it ran properly.

Was it loading the reply page to the user from my system's cache and not running the script? If this is the case why doesn't it do the same on a new tab?

Last edited by bluegospel; 01-21-2011 at 02:43 PM. Reason: extend inquiry
 
Old 01-23-2011, 11:50 AM   #2
schultzter
Member
 
Registered: Sep 2009
Distribution: Arch Linux
Posts: 40

Rep: Reputation: 3
I'm not sure how IE works, I try to avoid it, maybe if you try to manually clear the cache before each reload? But can you add something to your server-side script that must change every time it is executed - like a timestamp. Possibly you could also specify a timeout in the headers of your response that would prevent the response from being cached.

Sorry, I don't know enough about IE or CGI perl programming to be more specific but that's how I would proceed.
 
1 members found this post helpful.
Old 01-23-2011, 07:58 PM   #3
alpha01
Member
 
Registered: Jul 2008
Location: Orange County
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75

Rep: Reputation: 19
Do you get the same results if you use a different browser besides IE?
I wonder how the Apache logs the requests. Can you post the logs?

I'm not familiar with IE, but I find it hard to believe that its a caching issue that's preventing your perl script to append the text file.
 
Old 01-26-2011, 06:44 AM   #4
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
It seems related to IE. Have you tried with another browser ?

Maybe you need to add a "NO-CACHE" tag to your page ?
 
1 members found this post helpful.
Old 01-26-2011, 03:12 PM   #5
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Original Poster
Rep: Reputation: 53
Yes, the script succeeds in writing to the file in firefox, failing only in IE. It's not really an issue, as the script is a learning tool only, but I'm curious to know what's going on with IE. Which logs did you want to see Alpha? I know this is a very basic question schultzer, but if I do manually clear my browser's history, will that also clear my "bookmarks?"
 
Old 01-27-2011, 11:18 AM   #6
schultzter
Member
 
Registered: Sep 2009
Distribution: Arch Linux
Posts: 40

Rep: Reputation: 3
Quote:
Originally Posted by bluegospel View Post
I know this is a very basic question schultzer, but if I do manually clear my browser's history, will that also clear my "bookmarks?"
If by bookmarks you mean what IE calls Favourites then the answer is no, you can clear the cache, history, etc. without affecting your Favourites. Probably what you want to clear is the Temporary Internet Files and possibly the Cookies. Start with the Temporary Internet Files since clearing the Cookies will also log you out of every web site where you checked the Remember Me option the last time you logged in.
 
1 members found this post helpful.
Old 01-27-2011, 11:18 AM   #7
schultzter
Member
 
Registered: Sep 2009
Distribution: Arch Linux
Posts: 40

Rep: Reputation: 3
Clearing IE's cache

Quote:
Originally Posted by bluegospel View Post
I know this is a very basic question schultzer, but if I do manually clear my browser's history, will that also clear my "bookmarks?"
If by bookmarks you mean what IE calls Favourites then the answer is no, you can clear the cache, history, etc. without affecting your Favourites. Probably what you want to clear is the Temporary Internet Files and possibly the Cookies. Start with the Temporary Internet Files since clearing the Cookies will also log you out of every web site where you checked the Remember Me option the last time you logged in.
 
Old 01-27-2011, 01:44 PM   #8
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Original Poster
Rep: Reputation: 53
Thanks Schultzer.

FYI, that's exactly what it was. If I clear my temporary Internet files after I submit the script request, the next time I submit, it writes the file. If I don't clear it out, it doesn't write. So IE must store the first dynamic response from your script, and when you request the script again, load the stale response from cache without requesting the script. Right?
 
Old 01-27-2011, 09:46 PM   #9
schultzter
Member
 
Registered: Sep 2009
Distribution: Arch Linux
Posts: 40

Rep: Reputation: 3
Too much for me

Quote:
Originally Posted by bluegospel View Post
IE must store the first dynamic response from your script, and when you request the script again, load the stale response from cache without requesting the script.
I guess it's up to the browser how it wants to handle the results of scripts; although you can probably play with the headers of your response to indicate what you want browsers to do. That's way out of my league, but I'm sure the info's out there on web somewhere. Search for HTTP headers.

(BTW, don't forget to indicate a post is helpful so the author's gets some rep points)
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Eclipse, the Epic Perl plugin and my first Perl GUI program LXer Syndicated Linux News 0 05-08-2009 07:41 PM
issue with execution of PERL script rotkmaninov Linux - Software 6 07-10-2008 03:47 PM
Error - Perl execution failed in Webmin wslyhbb Linux - Server 0 12-31-2007 10:04 PM
Execution of PERL scripts in Linux which is compiled in WINDOWs environment to_veera Linux - Software 3 06-18-2004 09:50 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration