Created
November 20, 2011 23:19
-
-
Save jurka/1381137 to your computer and use it in GitHub Desktop.
cron task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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