Jump to content


Photo

i there a way to do this?


  • Please log in to reply
4 replies to this topic

#1 mjohn87

mjohn87
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 22 October 2006 - 01:31 AM

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.

#2 fert

fert
  • Members
  • PipPipPip
  • Advanced Member
  • 1,114 posts

Posted 22 October 2006 - 01:38 AM

this sounds like a job for a cron

Si hoc legere scis nimium eruditionis habes
Gentoo Linux 2007.0 Firefox 2

#3 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 22 October 2006 - 05:17 AM

use cron and regular exsperisons.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#4 mjohn87

mjohn87
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 22 October 2006 - 06:43 AM

thanks for the response

i am trying to use cron buy it wont work

im using it off my schools netwroks btw, they give each student 125 mb space

heres 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.php
when i use crontab cron in ssh its suppose to run every minute but it doesnt, it never runs not even once

when i just put this command in ssh: /usr/local/bin/php /afs/cad.njit.edu/u/j/m/jmm83/public_html/mail.php
it does run it and i do get the e-mail

#5 mjohn87

mjohn87
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 22 October 2006 - 03:31 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users