Cron jobs.

  • Ub3rl33t
  • Novice
  • Novice
  • No Avatar
  • Joined: Jul 23, 2004
  • Posts: 34
  • Status: Offline

Post July 23rd, 2004, 5:02 pm

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]
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 23rd, 2004, 5:02 pm

  • omirix
  • Banned
  • Banned
  • User avatar
  • Joined: Jul 23, 2004
  • Posts: 129
  • Loc: 127.0.0.1
  • Status: Offline

Post July 23rd, 2004, 9:17 pm

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
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post July 23rd, 2004, 9:26 pm

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...
Pixel Acres V2
  • Ub3rl33t
  • Novice
  • Novice
  • No Avatar
  • Joined: Jul 23, 2004
  • Posts: 34
  • Status: Offline

Post July 24th, 2004, 12:23 am

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
  • No Avatar
  • Joined: Jul 23, 2004
  • Posts: 34
  • Status: Offline

Post July 24th, 2004, 12:24 am

Sorry for double posting but i can also say the lynx one dosent work!!
  • Ub3rl33t
  • Novice
  • Novice
  • No Avatar
  • Joined: Jul 23, 2004
  • Posts: 34
  • Status: Offline

Post July 25th, 2004, 4:59 am

bump
  • Cafu
  • Student
  • Student
  • No Avatar
  • Joined: Jul 15, 2004
  • Posts: 97
  • Status: Offline

Post July 25th, 2004, 11:32 am

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 142 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.