• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Need help with this

R

rafcarter

Guest
Can you tell me exactly what the cron job would look like if I wanted to delete all files under /home/files every 6 hours every day ?
 
It would look like:
Code:
*	*/6	*	*	*	rm -rf /home/files/* >/dev/null 2>&1
Which corresponds to:
Code:
Min	Hr	DM	M	DW	Command
*	*/6	*	*	*	rm -rf /home/files/* >/dev/null 2>&1
The ">/dev/null" shovels the output to the bit bucket, the "2>&1" shovels errors (2) to stdout (&1) which of course goes to the bit bucket...
 
Back
Top