mjohn87 Posted October 22, 2006 Share Posted October 22, 2006 I would like to run a script on my site. I want it to run 24/7 on the server without it having anything to do with ppl lookin on my site. Basically I'm trying to write a script that checks something on a different site and once that thing is there, I want it to e-mail me. Is there anyway this can be done? using php or anything else? thank you in advance. Quote Link to comment Share on other sites More sharing options...
fert Posted October 22, 2006 Share Posted October 22, 2006 this sounds like a job for a cron Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 22, 2006 Share Posted October 22, 2006 use cron and regular exsperisons. Quote Link to comment Share on other sites More sharing options...
mjohn87 Posted October 22, 2006 Author Share Posted October 22, 2006 thanks for the responsei am trying to use cron buy it wont workim using it off my schools netwroks btw, they give each student 125 mb spaceheres what i did,i put this in the cron file:* * * * * /usr/local/bin/php /afs/cad.njit.edu/u/j/m/jmm83/public_html/mail.phpwhen i use crontab cron in ssh its suppose to run every minute but it doesnt, it never runs not even oncewhen i just put this command in ssh: /usr/local/bin/php /afs/cad.njit.edu/u/j/m/jmm83/public_html/mail.phpit does run it and i do get the e-mail Quote Link to comment Share on other sites More sharing options...
mjohn87 Posted October 22, 2006 Author Share Posted October 22, 2006 it seems my school doesnt allow the use of cron, which is why mine didnt work :\is there any other way to do what i want? i would like to somehow run a command or script periodically on the server Quote Link to comment Share on other sites More sharing options...
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.