I am attempting to use the crontab command on a script that has this content:
I am getting an error message that says "bad hour errors in crontab file, can't install." Is the syntax of my script incorrect, or do I have a problem with the crontab command?
You should seperate the time specification fields with whitespace.
Also, although it doesn't hurt, since it's interpreted as a comment by crontab, it is in no way necessary to specify "#!/bin/sh" in a crontab file. To specift the shell, use "SHELL=/bin/sh", but /bin/sh is used by default anyway.
So crontab does not treat scripts independently?
No, it merges all the lines you enter into one big crontab (still one for each user, though).
crontab(1) and crontab(5) have more info on the subject.
thanks for the help!
Thank you for taking the time to explain these things!