Solved

mail command

Posted on 2014-02-06
5
384 Views
Last Modified: 2014-02-25
I am new to mail command and I need help with mail command.

I did setup a cron job to run everyday.  When I tried to run mail command its shows
"/var/spool/mail/root": 2445 messages 2368 unread

How do i use this command to search better

I would really appreciate if someone can share the information.
0
Comment
Question by:ittechlab
  • 2
  • 2
5 Comments
 
LVL 23

Expert Comment

by:savone
ID: 39839593
Can you show us the command you are running?

What exactly are you trying to do?
0
 

Author Comment

by:ittechlab
ID: 39839995
actually when i run mail command i see a list but if i want to see more what is the command
0
 

Author Comment

by:ittechlab
ID: 39839997
how do i see more list
0
 
LVL 23

Expert Comment

by:savone
ID: 39840755
Try the + and - signs
0
 
LVL 5

Accepted Solution

by:
Dave Gould earned 310 total points
ID: 39847744
Once you've read your mails, you might want to avoid them in the first place!
You are probably getting them from the cron jobs as you do not redirect the output.
ie use something like this in your crontab:

10 * * * * your_script > log_file 2>&1
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Red Hat 7 Linux on Azure cannot run a command as root 22 51
SonarQube on Linux vs Windows 3 52
php56-php-mcrypt for rhel7 php56 1 47
CLI command keep running after close 7 36
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

839 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