Skip to content

Instantly share code, notes, and snippets.

@jurka
Created November 20, 2011 23:19
Show Gist options
  • Select an option

  • Save jurka/1381137 to your computer and use it in GitHub Desktop.

Select an option

Save jurka/1381137 to your computer and use it in GitHub Desktop.
cron task
#!/bin/sh
# file location: /var/project/jobs/fetch-and-update.sh
echo "Started at $(date +%Y-%m-%d\ %H:%M)"
echo ">>> fetch >>>"
time /var/project/fetch.sh
echo ">>> prepare >>>"
time /var/project/prepare.sh
echo ">>> update >>>"
time /var/project/update.sh
echo "Finished at $(date +%Y-%m-%d\ %H:%M)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment