Just small question

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

  1. almere

    almere Member HowtoForge Supporter


    I have just small dummy question.

    If I want to run cron like this:

    /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:

    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 Staff Member ISPConfig Developer

    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 Member 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?

    /usr/bin/wget -q http://www.mydomain.com/cron.php
    /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 ISPConfig Developer

    Yes, that's right.

Share This Page