PDA

View Full Version : cron /var/spool/mail/user_name



TheOlster
26th May 2006, 05:14 PM
I'm trying to set up a task to run every hour (5mins past) to execute a bash script but am having some problems. I understand that any errors would be outputted to /var/spool/mail/user_name

How do I access this mailbox?

Thanks...

Sarthan
26th May 2006, 05:18 PM
Setup a POP or IMAP server on the host and download the emails to a mailclient (e.g. Thunderbird).

OR

Su to the username and type mail at the command line.

e.g. su <username>
<username>$ mail

TheOlster
26th May 2006, 05:31 PM
Thanks I got my mail ok!

liro
26th May 2006, 07:45 PM
OR

Su to the username and type mail at the command line.

e.g. su <username>
<username>$ mail

OR the fastet way as root type 'mail -u <username>'

cheers...