Alternative for Cron

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Alternative for Cron
# 1  
Old 07-30-2009
Alternative for Cron

Hi... I want to know whether if there is any alternative for cron.Smilie

I had written a script which checks for all system/application processes every 15 min(placed in cron though). But looks funny - what if cron daemon isn't running!! and expecting that script to update the OUTPUT FILE that CRON DAEMON IS NOT RUNNING?????

No Cron Daemon,No execution of script , No alert/update.

Is there any alternative, unlike installing/going for applications like Patrol for UNIX???Smilie

If you want my script, i can post but i think its not required.Smilie

# 2  
Old 07-30-2009
On our systems cron is a critical process that may never not run. If it happens, then there it has to be restarted asap if possible. So far it never happened that it stopped so at least on AIX it was always very reliable.

You write your own script in an endless loop that does something every 15 mins, comparing som date (time) information or with sleep etc.

I'd say cron is the way to go.
# 3  
Old 07-30-2009
definately agree with that!

If cron is not running, you need to look at why, and/or restart it asap.
Why do you think it's not running?

You might want to read this link:

are you trying to run your own crontab, roots crontab, or another priveledged users cron?

Might be helpfull to post the crontab entry here.
"But looks funny - " what's this supposed to mean?
# 4  
Old 07-30-2009
Many thanks for the both the replies...
I had enough of curiosity to post my silly doubt, that made me FUNNY to think what if there is no CRON... HahaSmilie
# 5  
Old 07-30-2009
Originally Posted by reddybs
Hi... I want to know whether if there is any alternative for cron.Smilie
cron is very well-established in the UNIX world, you can pretty much expect to find it wherever you go. Its concept is robust, reliable, and secure. Most 'alternatives' you will find to the standard cron amount to different implementations of cron...
I had written a script which checks for all system/application processes every 15 min(placed in cron though). But looks funny - what if cron daemon isn't running!!
Likely the same thing that'd happen if this "Patrol" thing wasn't able to load itself and schedule things for whatever reason. If cron wasn't running, that would likely point to problems larger than your script... I've only managed to confuse cron once in my life -- by putting the system clock three months into the future by accident when it was already running.

It may seem a little odd to type things into a table file instead of enter them into a program, but cron is every bit as present and accounted for; just perhaps a little less direct, and that separation is one thing that makes it so dependable. Just make sure your user belongs to the cron group.
Is there any alternative, unlike installing/going for applications like Patrol for UNIX???Smilie
'patrol', if that program is what I think it is, it bears little resemblance to cron. cron's job is to run programs at scheduled times. Nothing more, nothing less. Remote monitoring would be done with different things -- though lots probably need cron Smilie

Though there is another cron-like thing for UNIX that I know of -- the at daemon. Fallen into disuse these days but you should still be able to install it if you want it. It lets you use relative times, which is occasionally useful. You could do echo /sbin/reboot' | at + 15 minute to reboot the system in 15 minutes.

Last edited by Corona688; 07-30-2009 at 01:13 PM..
# 6  
Old 08-03-2009

Just trudging through explanation/experience and is really good. Looks fine and dandy to me now about cron.... But still thinking - time for me to read more. Thanks a ton for your time. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Execution problem with Cron: Script works manually but not w/Cron. Why?

Hello gurus, I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup is shown below: #!/bin/ksh db2... (3 Replies)
Discussion started by: okonita
3 Replies

2. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

3. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

4. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

5. Solaris

vi alternative

Is there any other editor, installed by 'default' in Sparc Solaris10, besides vi? I'd like to avoid installing anything new. If not, how to make vi more user-friendly? thanks. (8 Replies)
Discussion started by: orange47
8 Replies

6. Shell Programming and Scripting

Alternative for wc -l

Hi techies .. This is my first posting hr .. Am facing a serious performance problem in counting the number of lines in the file. The input files i get will be in some 10 to 15 Gb of size or even sometimes more ..and I will load it to db I have used wc -l to confirm whether the loader... (14 Replies)
Discussion started by: rajesh_2383
14 Replies

7. Solaris

User entry in both cron.allow and cron.deny

Hello All, Anybody please help me to know ,what happens when a user having entry in both cron.allow and cron.deny files.Wheather the user will be able to access the crontab??? Thanks in advance Vaisakh (5 Replies)
Discussion started by: ksvaisakh
5 Replies

8. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

9. AIX

AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log

Hi, I can use 'crontabs –e' and do all the scheduling I like. However I would like to auto send myself just the cronjobs logs that fail. That is to say the PIDs that fail and the related lines with those PID’s only. (Not the full set of logs) Has anyone done this work? Or does an AIX 5.3 tool... (0 Replies)
Discussion started by: Keith Johnson
0 Replies

10. UNIX for Dummies Questions & Answers

.NET Alternative

Hi all, I was wondering what the Unix/Linux alternative is for ASP.NET? I know there is mod_mono for apache, but I think I am looking for a java based alternative. Something that offers things like codebehind pages ( seperating code from content ) , webcontrols, etc Thank you, goon12 (3 Replies)
Discussion started by: goon12
3 Replies
Login or Register to Ask a Question