Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

crontab question

  • 01-04-2002 3:49pm
    #1
    Registered Users, Registered Users 2 Posts: 476 ✭✭


    my question is in 2 parts .

    for using crontab you have 5 different date bits you can set :
    the first is the time of the hour
    the second is the hour , in 24 hour format
    the third is the day of the week ???
    the fourth is the month of the year ????
    and the fifth is the year ???


    i want a file to be called every day say at 12pm so would that be
    0 12 * * *


    no i want it to call a php script , located in /home/me/www/mail.php

    would i just have the whole bit like

    0 12 * * * /home/me/www/mail.php;


    the reason i am asking this is that , if i call the file from my shell i won't execute . it only executes if it is called like a web page . so could i slot in wget in there ?

    to look like

    0 12 * * * wget /home/me/www/mail.php;


    or should it be like for the serve web address ,

    0 12 * * * wget http://www.myniceserver.com/mail.php;

    i'm thinking the last one should work, or should there be single quotes for the url ?

    wat ya think ?


Comments

Advertisement