Want to Schedule Shell Script on AIX

Hi All,

I want to schedule a shell script on AIX.
But Crontab is not working in my AIX Server.Is there any alternative?
Please Suggest..

How do you know not working?
Perhaps build a very simple script, that creates a temp file. Then schedule the script to run in a few minutes so that you can watch it.
There are all sorts of reasons why something might not run, from as simple as not making the file executable to trying to write to a device that your batch profile does not map to, and so on.

A few questions to try to clarify such an open-ended issue:-

  • What sort of output/errors do you get?
  • What happens when you try to schedule a script with crontab -e ?
  • Is anything meaningful written in /var/adm/cron/log ?
  • Has your server clock changed recently?
  • Is the server process cron running? Output from ps -ef|grep cron will help you.
  • Which user are you trying to schedule with?
  • What entries are you trying to define in the schedule?
  • Have you used full path commands or set up the PATH variable in your script?
  • Is the account permitted to run scheduled work?

Sorry it's such a long list and it's probably not an exhaustive list, but it might provide some answers.

Robin

1 Like