Click here to Skip to main content
15,923,576 members
Home / Discussions / Web Development
   

Web Development

 
QuestionObjects in Session or Application scope Pin
Rajkamal_dfine12-Jul-07 20:47
Rajkamal_dfine12-Jul-07 20:47 
AnswerRe: Objects in Session or Application scope Pin
N a v a n e e t h12-Jul-07 21:15
N a v a n e e t h12-Jul-07 21:15 
QuestionCross-Browser compatible ShowModalDialog Pin
Vasudevan Deepak Kumar12-Jul-07 20:44
Vasudevan Deepak Kumar12-Jul-07 20:44 
AnswerRe: Cross-Browser compatible ShowModalDialog Pin
N a v a n e e t h12-Jul-07 21:16
N a v a n e e t h12-Jul-07 21:16 
GeneralRe: Cross-Browser compatible ShowModalDialog Pin
Vasudevan Deepak Kumar12-Jul-07 23:56
Vasudevan Deepak Kumar12-Jul-07 23:56 
QuestionApache Server Information Pin
JimmyRopes12-Jul-07 10:03
professionalJimmyRopes12-Jul-07 10:03 
AnswerRe: Apache Server Information Pin
Paul Conrad12-Jul-07 10:22
professionalPaul Conrad12-Jul-07 10:22 
GeneralRe: Apache Server Information Pin
JimmyRopes12-Jul-07 11:08
professionalJimmyRopes12-Jul-07 11:08 
Thanks for taking the time to help.

There have been 2 things lately.

First I put together some PERL scripts and when I executed them with a system call "system(script-name agr1 arg2 ... argn)" the script seemed to time out after some undetermined amount of processing. The launched script is a long running script that in turn launches other scripts.

I figured it had something to do with the browser process timing out so I changed the launching script to use exec instead of system thus launching it in a different process and the launched script to be capable of running from the command line. Took out all stdin reads, stdout and stderr writes, logged everything to a file, etc.

Things worked for a few days and I was able to monitor the process via ps and also looking at the logs as the script progressed. As I mentioned, this script launches other scripts as the job progresses and usually two or three of these scripts complete and then the process fails.

I can't seem to find a common failure point as each day the script fails at a different point of completion but I haven't had a successful run of the entire process for about a week now.

I designed the process, when having trouble launching from a browser, so as long as the first script completes I can restart the process from point of failure so I am able to manually complete all the processing if I take it a bit at a time. This seems to rule out a data anomaly but I am thinking there may be a process anomaly that is causing the process to fail when certain state is present. I am looking into making the scripts more bulletproof.

That's the first problem.

The second problem is when I tried to simulate crontab on the cheap. My web hosting package does not support cron and to upgrade to a package that does would be considerably more expensive (US$3.99/mo to US$9.99/mo).

Not to worry I think, I'm a developer, I can launch a process that checks a simulated queue (schedule file), sleeps for a predetermined interval and checks the queue again. After a reasonable amount of time (24 hours) it launches another copy of itself and the launched process sends a kill signal to get rid of the expiring process. That way I don't run into a problem where any process executes for too long and gets killed by the sysadmin thinking it is a stalled process.

So I put together a proof of concept script that does nothing else but write a time stamp message to a log file, sleeps for 1 minute and writes another time stamp message, etc. for 24 hours. This process seems to die after 10 or 15 minutes. Again I can't seem to get a consistent point where it is failing.

In theory I could set it up to live for at most 5 minutes and kick off it's replacement but I would rather solve the problem because I think both problems have a common cause. Hopefully by solving one I will solve both of them.

Any thoughts would be greatly appreciated.




Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems

I'm on-line therefore I am.
JimmyRopes


GeneralRe: Apache Server Information Pin
Paul Conrad12-Jul-07 11:37
professionalPaul Conrad12-Jul-07 11:37 
GeneralRe: Apache Server Information Pin
JimmyRopes12-Jul-07 12:02
professionalJimmyRopes12-Jul-07 12:02 
AnswerRe: Apache Server Information Pin
leckey12-Jul-07 11:02
leckey12-Jul-07 11:02 
GeneralRe: Apache Server Information Pin
JimmyRopes12-Jul-07 11:14
professionalJimmyRopes12-Jul-07 11:14 
GeneralRe: Apache Server Information [modified] Pin
leckey12-Jul-07 11:45
leckey12-Jul-07 11:45 
GeneralRe: Apache Server Information Pin
JimmyRopes12-Jul-07 12:05
professionalJimmyRopes12-Jul-07 12:05 
GeneralRe: Apache Server Information Pin
JimmyRopes12-Jul-07 16:44
professionalJimmyRopes12-Jul-07 16:44 
GeneralRe: Apache Server Information Pin
leckey12-Jul-07 17:10
leckey12-Jul-07 17:10 
QuestionDatabase connection problem Pin
matjame12-Jul-07 2:42
matjame12-Jul-07 2:42 
AnswerRe: Database connection problem Pin
Vasudevan Deepak Kumar12-Jul-07 23:57
Vasudevan Deepak Kumar12-Jul-07 23:57 
QuestionLoad a .net library Pin
pranu_1311-Jul-07 21:33
pranu_1311-Jul-07 21:33 
AnswerRe: Load a .net library Pin
Michael Sync11-Jul-07 23:15
Michael Sync11-Jul-07 23:15 
GeneralRe: Load a .net library Pin
pranu_1312-Jul-07 0:26
pranu_1312-Jul-07 0:26 
GeneralRe: Load a .net library Pin
Christian Graus12-Jul-07 10:07
protectorChristian Graus12-Jul-07 10:07 
QuestionReceiving posted file Pin
Brent Lamborn11-Jul-07 6:21
Brent Lamborn11-Jul-07 6:21 
AnswerRe: Receiving posted file Pin
Brent Lamborn11-Jul-07 8:16
Brent Lamborn11-Jul-07 8:16 
QuestionGet HTML Element properties in VBScript [modified - again] [modified] Pin
#realJSOP11-Jul-07 6:04
professional#realJSOP11-Jul-07 6:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.