Discussion Locked

CRON NEEDED

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

RE: REDHAT LINUX SERVER.

WE are looking for a Program or routine that will give us cron capability. It is needed to "ping" 3 (WIN2000) Servers at a set interval, & respond accordingly.

We've looked everywhere, & having no luck. I thought LINUXhad a cron command. My Programmer tells me NO(?). CAN U HELP, PLEASE?!

THANKS!

GUY!

3 replies

by d-ced

Although your programmer is wrong about Linux not having a CRON command, there are ways around using CRON. You could just set up a script to run 24x7. It should sleep for your set interval then run the ping test again etc....
Also a second script that can monitor that the primary script is useful in case the primary one fails, the secondary script can notify admin that the primary script needs to be restarted. The second script should just be given either the process id or the script name of the first script as a parameter to grep for in a "ps -ef" command.

That is the easiest/quickest way to setup a job if CRON isn't available.

by ananthap

Linux does indded have "CRON" command, except that like all unix, it's called `at`.

You set up rights in cron.deny and cron.allow files (if not the super user) and use the `at` command to fire up the programme.

In your case, the program could be a shell simple script to
`ping` appended to a file.

end

This discussion is closed to new replies.