General discussion



By xyzxyz ·

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?!



This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
Thread display: Collapse - | Expand +

All Comments

Collapse -


by nikki96 In reply to CRON NEEDED

Your programmer doesn't know about Google, apparently.
Linux does indeed have cron.

Have your system admin check to see why it isn't running, if it isn't. There are several things that need to be set up for a user to be able to use cron.

Collapse -


by D-CEd In reply to CRON NEEDED

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.

Collapse -


by ananthap In reply to CRON NEEDED

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.


Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums