1753465 Members
4667 Online
108794 Solutions
New Discussion юеВ

Scheduler

 
Prabhu_7
Frequent Advisor

Scheduler

I want to execute a shell script at a particular time (11am on every mondays).
Other than Cron job utility, is there any way to do the same ?
I guess AT can be used if we want to execute it once and cant scheduled for every week.

Help !!! If anyone has piece of code pls fwd. It will be a great help..

Thanks
Raj !!!!!!
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Scheduler

Hi Raj:

'cron' accomdates this kind of requirement so easily. Running a script with 'at' and as a last step of the script rescheduling itself for some increment (e.g. +count timeunit) also works well, as you noted.

Therefore, what's wrong with the above?

Regards!

...JRf...
Leif Halvarsson_2
Honored Contributor

Re: Scheduler

Hi,
You can add a line last in your script which calls at again:
at
and the script will be restarted again and again.

But why do you not want to use cron ?

( if I an not wrong cron and at uses the same scheduler )
Dario_1
Trusted Contributor

Re: Scheduler

Hi!

Cron will be the ideal but you could also use at.

See the at man page for more details.

Regards,

DR
Yogeeraj_1
Honored Contributor

Re: Scheduler

hi,

You can use at.

see man at for more details.

you will have to setup the environment. e.g. allow access to the user by making necessary modifications to files at.allow etc.

With Oracle, i prefer to use DBMS_JOB package to schedule my jobs.

hope this helps!

regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Prabhu_7
Frequent Advisor

Re: Scheduler


I just wanted to know , is there any utility available.
My requirement is not critical. Right now when i try to create a cron job
it says 'crontab: you are not authorized to use cron. Sorry.'
I guess i dont have permission to create cron jobs.
So i was curious to know whether any other way to do the same.

Anyway thanks.

Raj !!!!
Dario_1
Trusted Contributor

Re: Scheduler

You will have the same problem with the at command. The sys admin will have to add you to the cronallow and/or atallow file.

Regards,

DR
Helen French
Honored Contributor

Re: Scheduler

For the last part: If you want crontab permission, ask your system admin to do that. If you have the rights, then add your name on /var/adm/cron/cron.allow file or remove your name from /var/adm/cron/cron.deny.
Life is a promise, fulfill it!