Re: F20 Where's my system mail?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2014-04-13 at 15:43 +0200, Suvayu Ali wrote:
> On Sun, Apr 13, 2014 at 02:28:38PM +0100, Arthur Dent wrote:
> > On Sun, 2014-04-13 at 12:43 +0200, Suvayu Ali wrote:
> > > On Sun, Apr 13, 2014 at 10:54:18AM +0100, Arthur Dent wrote:

> > 
> > This means that I get get system mail for root (my main concern) but it
> > doesn't seen to give me cron output for jobs run as my normal user.
> > 
> > Can I achieve something similar for that? If so how?
> 
> That requires nothing at all.  All system mail will be delivered to
> /var/spool/mail/<username> without any configuration.

Oh Dear. That means I have a problem somewhere.
I have created a simple script:

#!/bin/bash
#-----------------------------------------------------------------
# Script to check for the existence of the file ~/testfile
# If the file is present cron should send an email to warn of that fact.
#
if [ -f /home/mark/testfile ]
then
    echo Warning! The file Tesfile exists!
fi

Running this from the command line produces the expected output. Running
it from cron (as my user - mark) does nothing.

What have I done wrong?

Thanks again.

Mark



-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux