• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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