1753872 Members
7264 Online
108809 Solutions
New Discussion

Re: cron job

 
Steven Schweda
Honored Contributor

Re: cron job

> it goes the same with curl:

And a Forum search for keywords like, say,
telnet expect
might find examples of the use of Telnet in
a script, too. Or, one could use Kermit,
which has its own, built-in scripting
capability.
TTr
Honored Contributor

Re: cron job

As mentioned above, there are scripting defficincies to say the least in the way you are checking for a running inted.

If inetd is not running, the command "inetd -c" will output "inetd:There is no inetd running" and exit code 1. If inetd is running, "inetd -c" will reload the config file which is harmless if no config changes have been made and exit code 0.

Of course inetd could be running and be in a hung state so as mentioned above, the real test would be to use a service that is started by inetd.

> crontab -e
> but cron job is not running
> i have checked the entry in var/adm/cron/cron.allow file also


This may be a cron problem.
1. What does crontab -l show?
2. Have you checked the cron log file to see if the job is executed or it has errors?
3. Have you checked the root's email to see if cron reports any errors?