Solved

> /var/mail/root

Posted on 2014-01-06
2
425 Views
Last Modified: 2014-01-06
Experts,

Is it safe to create a cron job with the following:

* 6 * * * >/var/mail/root

The goal is to truncate the root mail inbox. Centos
0
Comment
Question by:gsmith888
2 Comments
 
LVL 21

Accepted Solution

by:
robocat earned 500 total points
ID: 39759141
sure, if you don't need these messages for diagnostic purposes.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 39759295
you should not have a problem
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now