403Webshell
Server IP : 164.138.27.172  /  Your IP : 216.73.216.143
Web Server : nginx/1.27.4
System : Linux cookingdream 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : www-adm ( 1001)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/jonasn/.rvm/help/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jonasn/.rvm/help/cron.md
Usage:

1. Add/Remove ruby variables to cron:

    rvm cron {setup|remove}

2. Manage rvm on single command level

    rvm cron command <"schedule"> <command> <params...>


Example 1 set one ruby for all cron jobs:

    cd /project/dir  # go to project dir, or `rvm use ...`
    rvm cron setup   # initialize cron with ruby settings
    crontab -e       # add tasks to cron

After project ruby changes:

    rvm cron setup   # update cron with new ruby settings



Example 2 add single job using current dir for rvm:

    cd /project/dir  # go to project dir, or `rvm use ...`
    rvm cron command "@daily" rake calculate:stats

Refer to `man 5 crontab` for definitions of time/date, examples:

    "*/5 * * * *" - Every 5 minutes
    "@hourly"     - Once an hour
    "* */4 * * *" - Every 4 hours
    "0 6 * * *"   - Everyday at 6am
    "0 7 * * 5"   - Every Friday at 7am

NOTE! Do not forget to set notification email in `crontab -e`:

    MAILTO=someone@project.com

Youez - 2016 - github.com/yon3zu
LinuXploit