• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 417
  • Last Modified:

mail command

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
ittechlab
Asked:
ittechlab
  • 2
  • 2
1 Solution
 
savoneCommented:
Can you show us the command you are running?

What exactly are you trying to do?
0
 
ittechlabLinux SupportAuthor Commented:
actually when i run mail command i see a list but if i want to see more what is the command
0
 
ittechlabLinux SupportAuthor Commented:
how do i see more list
0
 
savoneCommented:
Try the + and - signs
0
 
Dave GouldCommented:
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now