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.
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.
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?
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.
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?
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)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now