Code:
crontab -e -u username
Then it will open text editor like nano, pico or vi depending on your server. You need to enter the cronjob command in the editor and save it. After you add it, you can verify it with command

Code:
crontab -l -u username
Don't run it as user root. If you are loging in as root, just create a new user to run cron job.