Cron jobs.

  • Ub3rl33t
  • Novice
  • Novice
  • Ub3rl33t
  • Posts: 34

Post 3+ Months Ago

I want to use cron jobs to execute this file;

http://www.ashley-taylor.net/rpg/tickah ... d=brownies

I have to enter a command to do so. Do i just put

Code: [ Select ]
GET http://www.ashley-taylor.net/rpg/tickah.php?password=brownies


In the command field?

Its all just a [blur]blur to me!![/blur]
  • omirix
  • Banned
  • Banned
  • User avatar
  • Posts: 129
  • Loc: 127.0.0.1

Post 3+ Months Ago

do this:
Code: [ Select ]
lynx http://www.ashley-taylor.net/rpg/tickah.php?password=brownies


in the cron job field.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

I've had troubles with lynx, you could also try something like this:

Make a file,
tickah.sh:
Code: [ Select ]
#!/bin/sh
cd /www/rpg/
php tickah.php?password=brownies
  1. #!/bin/sh
  2. cd /www/rpg/
  3. php tickah.php?password=brownies


Then set the cron to tickah.sh and CHMOD 777 tickah.php.

I'm not sure if you can pass variables like that while using the php command...
  • Ub3rl33t
  • Novice
  • Novice
  • Ub3rl33t
  • Posts: 34

Post 3+ Months Ago

Uh...well im using CPANEL and its a web based cron job interface.

And i put 1 in minute and then its asking me for a command so i done the lynx one. Totally baffled on the SH one.
  • Ub3rl33t
  • Novice
  • Novice
  • Ub3rl33t
  • Posts: 34

Post 3+ Months Ago

Sorry for double posting but i can also say the lynx one dosent work!!
  • Ub3rl33t
  • Novice
  • Novice
  • Ub3rl33t
  • Posts: 34

Post 3+ Months Ago

bump
  • Cafu
  • Student
  • Student
  • Cafu
  • Posts: 97

Post 3+ Months Ago

I think you want to look into the fopen command.


Here is an example that may help:

http://betelgeuse-4.net/howto/update/update.php

This is probably more than you need, but it shows the use of fopen. You could probably just make a php file with this in it:

Code: [ Select ]
fopen("http://www.ashley-taylor.net/rpg/tickah.php?password=brownies", "r");


and cron that file.

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 95 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.