I’m just trying to do crontab tasks.
First changed VISUAL variable to “nano” (I don’t know how to use vi…). Created task with “crontab -e”, tried this simple task and saved:
40 16 * * * ls
Verified the task:
user@linux-loyv:~> crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.uDB3KV installed on Mon Dec 2 16:34:18 2013)
# (Cronie version 4.2)
35 16 * * * ls
You have mail in /var/spool/mail/user
System has never ever send me mail, and I didn’t like it… Anyway checked it:
user@linux-loyv:~> cat /var/spool/mail/user
From user@linux-loyv.site Mon Dec 2 16:35:01 2013
Return-Path: <user@linux-loyv.site>
X-Original-To: user
Delivered-To: user@linux-loyv.site
Received: by linux-loyv.site (Postfix, from userid 1000)
id 772E5C10B9; Mon, 2 Dec 2013 16:35:01 -0600 (CST)
From: user@linux-loyv.site (Cron Daemon)
To: user@linux-loyv.site
Subject: Cron <user@linux-loyv> ls
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/user>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=user>
X-Cron-Env: <USER=user>
Message-Id: <20131202223501.772E5C10B9@linux-loyv.site>
Date: Mon, 2 Dec 2013 16:35:01 -0600 (CST)
Downloads
Documents
Desktop
Pictures
Music
Templates
Public
VirtualBox VMs
Videos
bin
public_html
But the thing is, it seemingly didn’t work. I was expecting an actual displayed ls on my current directory at minute 40, but nothing happened.
What am I doing wrong? And how can I clear system mails?
Thanks.