Skip to content
This repository has been archived by the owner on Feb 20, 2018. It is now read-only.

Is there error checking in your project? #25

Open
szepeviktor opened this issue Dec 29, 2014 · 4 comments
Open

Is there error checking in your project? #25

szepeviktor opened this issue Dec 29, 2014 · 4 comments

Comments

@szepeviktor
Copy link

1,15,31,46 * * * www-data /usr/local/bin/wp-cron.sh /var/www/vk.com/server/wordpress
returns:

The command /usr/local/bin/wp-cron.sh /var/www/vk.com/server/wordpress will execute the 1st and 15th and 31st and 46th minutes of every hour Sundays through Sundays in every month.

with no error.

@pbyrne
Copy link
Owner

pbyrne commented Dec 29, 2014

Is there error checking in your project?

While there's error checking, I definitely seem to have a bug in my range handling for days of week.

The statement www-data is in the day-of-week space and is being interpreted as "www through data", and then when I look up the day name, for both www and data, I convert them to an integer to look them up in an array, so the end up being 0 (for Sunday).

I'll need to make that stricter, at which point, the app will tell you that this is invalid. I'll tackle this as the next item for this project.

@szepeviktor
Copy link
Author

Thank you for your answer.
And maybe you could care about user/system cron. System cron must have a username.

@pbyrne
Copy link
Owner

pbyrne commented Dec 29, 2014

And maybe you could care about user/system cron. System cron must have a username.

That's something to keep in mind as I improve this app, but I'll note that this is the first time anyone has asked for it. From the usage I'm seeing in the queries that get submitted, it appears that nearly everyone is using user crons (e.g., crontab -e).

@szepeviktor
Copy link
Author

I was looking for a cron sytax checker when found your project.
An API would be nice.
Because on one of the servers a * was missing. And that job never started.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants