Replace php script with bash script for cron job