Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th January 2013, 06:56
almere almere is offline
ISPConfig Developer
 
Join Date: Nov 2012
Location: Netherlands, Rotterdam
Posts: 231
Thanks: 20
Thanked 39 Times in 34 Posts
Send a message via Skype™ to almere
Question 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.
Reply With Quote
Sponsored Links
  #2  
Old 9th January 2013, 08:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,975
Thanks: 825
Thanked 5,368 Times in 4,215 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 9th January 2013, 09:48
almere almere is offline
ISPConfig Developer
 
Join Date: Nov 2012
Location: Netherlands, Rotterdam
Posts: 231
Thanks: 20
Thanked 39 Times in 34 Posts
Send a message via Skype™ to almere
Default

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
Reply With Quote
  #4  
Old 10th January 2013, 18:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by almere View Post
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Perfect Server Partitioning Question diago HOWTO-Related Questions 1 25th November 2012 14:20
Dumb Virtualhost Question DantePasquale Server Operation 1 16th December 2009 07:43
Hostname question, and DNS question andrewfashion General 1 20th April 2009 13:30
Odd question for Falko Randy Installation/Configuration 1 16th October 2006 14:58
Small question misterm Installation/Configuration 1 18th October 2005 13:07


All times are GMT +2. The time now is 15:58.


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