View Single Post
Old January 20th, 2008, 9:26 PM   #1 (permalink)
fury
Surpass Fan
Excelling Contributor
 
fury's Avatar
 
Joined in Dec 2005
Lives in MN > USA
Hosted on pass84
961 posts
Gave thanks: 48
Thanked 43 times
Question About Cron

Hello,

I am attempting to setup a cronjob that will generate an RSS feed from my database every 6 hours. I already made all the PHP code to do this, but I am not familiar with cronjobs and how to execute them.

Google search revealed this string to enter in the command line:

php /home/user/public_html/path/to/file.php

My question is, can I append variables to the end of the cron command?

For example:

php /home/user/public_html/path/to/file.php?action=generate&feed=1

The bolded portion is what I am unsure about. If someone with experience could please help me, I would greatly appreciate it!
__________________
fury™ - not helping the situation since 1987
robmonroe.net | | bullsux.com
fury is offline   Reply With Quote