|
|
#1 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in Canada
Hosted on Pipe
141 posts
Gave thanks: 4
Thanked 3 times
|
Cron Job
Hello,
I would like to know if it is possible to use a cron job to run a php script once a week (Sunday at midnight) or will this be consider as a script running in the background (and be illegal)? BTW : I know nothing on Cron Job beside they can do something at a definit time! :ktoe: |
|
|
|
|
|
#2 (permalink) |
|
minor deity
Super #1
Joined in Apr 2004
Lives in Georgia
Hosted on XEON
7,395 posts
Gave thanks: 28
Thanked 94 times
|
Depends on what the cron job does.
For example, if you look in the EMAIL forum you'll see a post from me on how to automate Spam Assassin 'learning'. That runs as a cron job. Other people run 'backup' jobs. So, unless the script you're running uses a TON of resources and never exits, I think you're ok. John
__________________
Proud to be a Surmunity Mod! XEON Make a fundamental difference! My Sites: Curious about Brewing Beer? Join the community! >>>>> Some Change is GOOD! Keep your paycheck! Support the Fair Tax Get into an Art museum Victorian London It's your brain -ON WEB - mybrainhost.com (under development) What SHOULD Government do? Much Less than it Does! |
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in May 2004
Lives in Auckland, New Zealand
Hosted on Sync
166 posts
Gave thanks: 0
Thanked 0 times
|
Where does it say that a script running in the background is illegal?
Even surmunity has cron scripts that run at times throughout the day (updating user ranks based on post count/sending daily Forum updates/sending reminder notices to people who haven't confirmed their email address...) It would be impossible (or at least very annoying and time-consuming) to run any kind of dynamic site without beinag allowed to have scripts that are executed in the background.
__________________
From NZ? Want Free Messageboards and Games? - NZB From NZ? Want Kiwi Web Hosting and Design? - Sparkle Hosting Sync sync sync...sync sync sync..sync your bootie! |
|
|
|
|
|
#6 (permalink) |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in Canada
Hosted on Pipe
141 posts
Gave thanks: 4
Thanked 3 times
|
Sorry for the confusion, when I put "and be Illegal", I just wanted to make sure this wouldn't be Illegal. I guess I could have put "or be Illegal" instead of that script running in the background stuff.
Sorry, I hope you aren't to mad! ![]() |
|
|
|
|
|
#7 (permalink) | |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in Canada
Hosted on Pipe
141 posts
Gave thanks: 4
Thanked 3 times
|
Quote:
|
|
|
|
|
|
|
#8 (permalink) | |
|
Surpass Fan
Comfy Contributor
Joined in May 2004
Lives in Auckland, New Zealand
Hosted on Sync
166 posts
Gave thanks: 0
Thanked 0 times
|
Quote:
![]()
__________________
From NZ? Want Free Messageboards and Games? - NZB From NZ? Want Kiwi Web Hosting and Design? - Sparkle Hosting Sync sync sync...sync sync sync..sync your bootie! |
|
|
|
|
|
|
#9 (permalink) | |
|
Surpass Fan
Comfy Contributor
Joined in Apr 2004
Lives in Canada
Hosted on Pipe
141 posts
Gave thanks: 4
Thanked 3 times
|
Quote:
![]() |
|
|
|
|