Hi DA users,
I am trying to setup a cronjob to delete all emails older than 1 day so the server doesnt get filled up. This is what i am trying (after login as root via ssh).
and i get this response.
Response:
what am i doing wrong? How can i run this as root?
I am trying to setup a cronjob to delete all emails older than 1 day so the server doesnt get filled up. This is what i am trying (after login as root via ssh).
Code:
crontab -e 0 23 * * * /home/admin/delete-emails-older-than-1-day.sh
and i get this response.
Response:
Code:
crontab: usage error: no arguments permitted after this option
usage: crontab [-u user] file
crontab [ -u user ] [ -i ] { -e | -l | -r }
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)
what am i doing wrong? How can i run this as root?