View Full Version : crontab error
fsiegel
05-31-2001, 02:20 PM
What I mean about "installing a script through crontab"
I understand that once you upload the script, you telnet into the directory where the script resides and type contab filename. That is where/when I get the error message.
The filename is: bumysql.cgi located in my cgi-bin directory.
I have executed each line of the script during a telnet session without error.[nbsp][nbsp]So I tend to believe there are no errors in the script save somewhere in the first three lines (these lines are not 'ececutable' during a telnet session).
I'm far from an expert on crontab, but I believe you are mixing up a few different steps.[nbsp][nbsp]The lines of the cron file you quoted, which should contain the correct path to the bumysql.cgi script, are the file that you should be running the crontab filename command on.
Dan
fsiegel
05-31-2001, 02:52 PM
Ok, I tried your suggestion.[nbsp][nbsp]I telnet into my cgi-bin,
I type crontab bumysql.cgi and I get the same error message.[nbsp][nbsp]I then typed crontab /big/dom/domain/cgi-gin/bumysql.cgi and get the same error message.[nbsp][nbsp]Of course I entered my correct path - replacing my true domain name where I indicated 'domain'.
Unless bumysql.cgi is the file with cron instructions that you quoted in your first message, that's the wrong thing to be adding after crontab ___.
Hmm, the fact that you showed #!/bin/bash as being the first line makes me wonder if that's indeed what you've done...[nbsp][nbsp]When you enter a cron job, you are entering the instructions for what file to execute at specific time, rather than executing the file itself.
Dan
fsiegel
06-01-2001, 01:51 AM
Here is the biginning few lines of my cron file:
#!/bin/bash
MAILTO=user@domain.com
55 2 * * * /path/to/xdomain/backup/directory
Whenever I try installing this script using: crontab filename it keeps returning the following error:
"filename":5: bad minute
errors in crontab file, can't install.
Bad minute???[nbsp][nbsp]Can someone give me a hint what's wrong
with this?
[This message has been edited by fsiegel (edited 05-31-01@12:53 pm)]
Might just be terminology, but installing a script through crontab?[nbsp][nbsp]I assume you mean entering a cron job?[nbsp][nbsp]Do you have the paths set correctly?[nbsp][nbsp]What exactly is "filename" and where is it located?
Dan
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.