lolallero Posted November 23, 2011 Posted November 23, 2011 hello i've a compiled web application and the compiler gave me also a cgi/perl script to run it. The problem is that when running the script the application start loading but then "goes offline" according to the UI. is there any timer who kills the exe? or the cgi is killed along with child process?i tried to write a php script to do the work but i got exec() is disabled for security reasons... Can you help me? Thanks in advance. Quote
Byron Posted November 23, 2011 Posted November 23, 2011 If the script takes too long to execute it will automatically time out. For php scripts I believe it's 30 seconds and I would think cgi/perl scripts would be the same. Quote
lolallero Posted November 23, 2011 Author Posted November 23, 2011 i still can't understand if the timer kills the script, the exe or both... and is there any solution? Quote
Byron Posted November 24, 2011 Posted November 24, 2011 There's nothing that can be done about the execution time. If it's possible you might try to break up your script in to two or more scripts. Quote
lolallero Posted November 24, 2011 Author Posted November 24, 2011 I think that the app is killed since it is a child of the script. am i right? Is there a way to run it without timeouts? Is a CRON job feasible? Quote
Guest xaav Posted November 24, 2011 Posted November 24, 2011 Sure, you could run it via a cron job. Quote
lolallero Posted November 24, 2011 Author Posted November 24, 2011 And it wouldn't get killed. If it is so i'll give it a try. can the application listen on a port like 6632 ? Then i would acces the site by appending ":6632" to the domain name. if i put the application executable(called 'nsite') in /home/username then in cron command i would write "/home/username/nsite" ? (with or without brackets) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.