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