On Sun, Apr 13, 2014 at 03:38:57PM +0100, Arthur Dent wrote: > 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? I'm not sure, I tried the following cron entry to test: [[ -f $HOME/dummy ]] || echo does not exist I received mail like this: Subject: Cron <jallad@chitra> [[ -f $HOME/dummy ]] || echo does not exist does not exist Are you sure your MTA is running properly? What does `systemctl status' tell you? Hope this helps, -- Suvayu Open source is the future. It sets us free. -- 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