Solved

mail command

Posted on 2014-02-06
5
380 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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

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

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

895 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

14 Experts available now in Live!

Get 1:1 Help Now