HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Just small question (http://www.howtoforge.com/forums/showthread.php?t=60171)

almere 9th January 2013 07:56

Just small question
 
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.

till 9th January 2013 09:19

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.

almere 9th January 2013 10:48

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

falko 10th January 2013 19:21

Quote:

Originally Posted by almere (Post 290559)
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

Yes, that's right.


All times are GMT +2. The time now is 17:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.