Running the calling script/task as per day

Hello all..
i have few task to do on specific day ar per weekday or weekend...
for example i have 3 tasks:

task1
task2
task3

Now i need to create a shell script
If it is weekday it will change the status of these tasks as below

sendevent -E CHANGE_STATUS -s SUCCESS -J task1
sendevent -E CHANGE_STATUS -s SUCCESS -J task2
sendevent -E CHANGE_STATUS -s SUCCESS -J task3

and if it is weekend the task1,task2 and task3 should simply run

---------- Post updated at 04:49 PM ---------- Previous update was at 03:52 PM ----------

ok..sure i will use the tags..

---------- Post updated at 04:50 PM ---------- Previous update was at 04:49 PM ----------

can anybody suggest what can be done...

Perhaps we need to know a little more...
a) Why "for example"?

b) What are these tasks ( or what do you call task)? Processes, programs? jobs?

c) You know our policy is more strict on what we expect from people posting in shell/programming... We expect to see something you started showing us you tried to do it, but cannot...

d) what does:

sendevent -E CHANGE_STATUS -s SUCCESS -J task1

?

So that we understand the difference between week and week-end

Only once all this is clear can we help you

man crontab first

For example, you need run the scrip on weekday and have one hour gap between three tasks.

0 10 * * 1,2,3,4,5 sendevent -E CHANGE_STATUS -s SUCCESS -J task1
0 11 * * 1,2,3,4,5 sendevent -E CHANGE_STATUS -s SUCCESS -J task2
0 12 * * 1,2,3,4,5 sendevent -E CHANGE_STATUS -s SUCCESS -J task3

run on weekend

0 10 * * 6,7 task1;task2;task3

its in cron...

I might be wrong and sorry if am.

It looks like the current thread is similar to this thread - Shell script to schedule jobs