Just small question

Discussion in 'General' started by almere, Jan 9, 2013.

  1. almere

    almere HowtoForge Supporter

    Hi!

    I have just small dummy question.

    If I want to run cron like this:

    Code:
    /usr/bin/wget -q http://www.mydomain.com/cron.php
    
    For this i can use standard tool from ISPConfig. I till be like this: 1 1 * * * http://www.mydomain.com/cron.php

    but how can i use something like this:

    Code:
    find /var/www/clients/client1/web34/web/core/cache/lofthumbs -mmin +30 -exec rm {} \; >/dev/null 2>&1
    
    ?


    Thank you.
     
  2. till

    till Super Moderator

    For the second command you need full cron, this can be allowed in the client limits as the find command is not part of the jail. As alternative you can use a jailed cron, but then you will have to add the find command to the jail.

    And you have to use the full path to the find command in the cronjob like /usr/bin/find instead of find.
     
  3. almere

    almere HowtoForge Supporter

    Hi till,

    Thank you. One more time.

    If i set "Full cron" to a user, than i have to use lines as below, right?

    Code:
    /usr/bin/wget -q http://www.mydomain.com/cron.php
    Code:
    /usr/bin/find /var/www/clients/client1/web34/web/core/cache/lofthumbs -mmin +30 -exec rm {} \; >/dev/null 2>&1
    Thank you
     
  4. falko

    falko Super Moderator

    Yes, that's right.
     

Share This Page