title: Shell script doesn't execute from cron job
body: <p>shell script:</p>
  
  <pre><code>#!/bin/sh
  services=( httpd named proftpd mysqld dovecot postfix webmin)
  
  for service in ${services[@]}
  do
  
  if ps ax | grep -v grep | grep $service &gt; /dev/null
  then
      echo "$service service running, everything is fine"     
  else
      echo "$service is not running"
      service $service start
  fi
  
  done 
  </code></pre>
  
  <p>file executable, running from root user</p>
  
  <p>command:</p>
  
  <pre><code>bash /etc/mycron/checkServices.sh
  </code></pre>
  
  <p>tried sh and just <code>/etc/mycron/checkServices.sh</code></p>
  
  <p>doesn't run</p>