cron job help

hi

i installed cast control lite ok but i got this message

You now need to configure the following CRON jobs which are essential to running cast-control

* * * * * php -q /var/www/html/scanner/cron.php queue=1 >/dev/null 2>&1

*/5 * * * * php -q /var/www/html/scanner/cron.php bitrate=1 logfiles=1 playedsongs=1 messenger=1 >/dev/null 2>&1

0 0 * * * php -q /var/www/html/scanner/cron.php playedsongs=1 mailplayedsongs=1 >/dev/null 2>&1


how do i run them without a control panel. i only have putty and ssh commands. what do i have to type to get the cron job working on my vps linux centos 5 server.

Comments

  • MaxatoriaMaxatoria Posts: 17,980
    Forum Member
    ✭✭
    time to lookup the vi command and how to edit files - it takes a bit of time to get used to it

    and you might need to team it with sudo depending on the files permissions
  • bob187bob187 Posts: 1,280
    Forum Member
    ✭✭✭
    Typing crontab -e from the shell will open up the crontab editor, although as Maxatoria has said above you may need to sudo this, and look up how to use vi (the text editor that you use to edit the cron file).

    It's a lot simpler than it sounds, although if you aren't sure what vi or sudo are you should probably research a bit into it first.
  • Thine WonkThine Wonk Posts: 17,190
    Forum Member
    ✭✭
    :wq! :D
Sign In or Register to comment.