Home Cron Scheduling bad username
Reply: 1

Cron Scheduling bad username

Suzerain
1#
Suzerain Published in 2017-12-07 19:04:48Z

My crontab isn't running. After checking the syslog I am getting the following errors:

Dec  7 18:57:01 raspberrypi cron[334]: Error: bad username; while reading /etc/cron.d/crontab
Dec  7 18:57:01 raspberrypi cron[334]: (*system*crontab) ERROR (Syntax error, this crontab file will be ignored)

I'm trying to schedule a cron task, and it keeps giving me a bad username error... i've tried both:

57 13 * * * pi /home/pi/Desktop/shell.sh

and

57 13 * * * root /home/pi/Desktop/shell.sh

and they're both coming back invalid, what am i missing?

arwn
2#
arwn Reply to 2017-12-08 06:22:39Z

You might have gotten some unintended control characters when editing your crontab. cat -v on your crontab to check. Always make sure to edit your crontab with crontab -e.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.333164 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO