crontab execution

is it possible to soecify time overnight in 5 days for example:

0 18-7 * * 1-5 /mycode

is this okay to use 18-7 because im not getting the results correctly?

Try this instead:

0 0-7,18-23 * * 1-5 /mycode

Then again, what are you trying to do?

My solution does morning and evening of each weekday.

My solution may not be what you really want.

You may need to split it into 3 lines. 1 for Monday evening, 1 for Tuesday thru Friday, morning and evening, and 1 for Saturday morning.

I.E.:

0 18-23 * * 1 /mycode # Monday Evening
0 0-7,18-23 * * 2-5 /mycode # Tue thru Fri, Morning & Evening
0 0-7 * * 6 /mycode # Saturday Morning

Thank you i think i will go with slpitting becase i think this was going to end Saturday Morning...

As I was driving home last night, the thought popped into my head that it only needs two lines:

0 18-23 * * 1-5 /mycode # Monday thru Friday Evening
0 0-7 * * 2-6 /mycode # Tuesday thru Saturday Morning