Can't edit my Crontab

Hi,

I m setting up my crontab for the very first time. I m a non-root user and this is linux

[user1@mymac ~]$ export EDITOR=vi
[user1@mymac ~]$ crontab -e
no crontab for user1 - using an empty one
crontab: installing new crontab
"/tmp/crontab.uW0JNx":1: bad command
errors in crontab file, can't install.
Do you want to retry the same edit?

I use wq! to save the changes made but it keeps asking me Do you want to retry the same edit?

Can you plz suggest ?

You did not post your entries, therefore, this is a guess.
One or more of your entries are not correct. Check that you did not enter more * than required.

1 Like

This is my entry

10 3 * * * /opt/bin/restart.sh >> /opt/bin/restart.log

Do u see anything wrong with it ?

---------- Post updated at 07:18 PM ---------- Previous update was at 07:15 PM ----------

k figured out should be 03 and not just 3 :slight_smile: thank you !!

What operating system are you using?

3 in the minutes field should work just as well as 03 .