Need Help? Lets get in touch with our Support Team

0
No products in the cart.
  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9641
    gaurav
    Participant

    I am using the amazonaws es3 server.I want to schedule my cron with command line.
    I am using the this command for scheduling the cron job

    at -f shellscript.sh -v 18:30

    but it will schedule for only one time i want to configure manually like once a day or every five minutes .

    Please help with command which command i have to used

    Thnaks,

    #9642
    blankkfirbreger
    Participant

    You can use the command crontab -e to edit your cron planned execution. A good explanation on how to set the time can be found on the Ubuntu forum

    #9643
    blanknitesh
    Participant

    Doesn’t crontab -e work?
    and to generate crontab code http://www.openjs.com/scripts/jslibrary/demos/crontab.php should help.

    #9644
    blankkibet-yegon
    Participant

    As @The.Anti.9 noted, this kind of question fits in Serverfault.
    To answer your question, crontab is a little more powerful than ‘at’ and gives you more flexibility as you can run the job repeatedly for instance daily, weekly, monthly.

    For instance for your example, if you need to run the script every day at 18:30 you’d do this,

    $ crontab -e
    

    then add the following

    30 18 * * * /path/to/your/script.sh
    

    save and you are done.

    Note: 30 18 indicates time 18:30, and *s indicate that it should run every day of every month) If you need to run it on a particular day of the month just check it out on the man page of crontab.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.