Skip to content

Commit

Permalink
tweaks to my cronjobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Dec 8, 2016
1 parent 1176be8 commit 24064d6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions cron/daily-nighttime.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash


# `crontab -l` sez this runs every night at 3am

PATH=/Users/paulirish/.homebrew/bin:/Users/paulirish/.homebrew/sbin:/Users/paulirish/code/depot_tools:$PATH

# update devtools standalone repo
Expand Down
3 changes: 1 addition & 2 deletions cron/twice-daily-daytime.sh → cron/every-hour.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

# `crontab -l` sez this runs TWICE daily.. at 2pm and 8pm

# `crontab -l` sez this runs every hour on the hour

PATH=/Users/paulirish/.homebrew/bin:/Users/paulirish/.homebrew/sbin:/Users/paulirish/code/depot_tools:$PATH

Expand Down
5 changes: 4 additions & 1 deletion cron/weekly.sh → cron/twice-a-week.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

# runs on sunday and thursday at midnight

PATH=/Users/paulirish/.homebrew/bin:/Users/paulirish/.homebrew/sbin:/Users/paulirish/code/depot_tools:$PATH


# protocol viewer
cd $HOME/code/pristine/debugger-protocol-viewer-pristine && git checkout gh-pages && ./update-protocol-json.sh && git commit -am "bump protocol"
# git config user.name "devtools-bot"
# git config user.email "paulirish+bot@google.com"
cd $HOME/code/pristine/debugger-protocol-viewer-pristine && git checkout gh-pages && ./update-protocol-json.sh && git commit --author="DevTools Bot <paulirish+bot@google.com>" -am "bump protocol"
cd $HOME/code/pristine/debugger-protocol-viewer-pristine && git pull && git push
6 changes: 3 additions & 3 deletions crontab
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#=====================================================================#
# * * * * * $HOME/bin/gmail.rb
0 3 * * * $HOME/code/dotfiles/cron/daily-nighttime.sh
0 14 * * * $HOME/code/dotfiles/cron/twice-daily-daytime.sh
0 20 * * * $HOME/code/dotfiles/cron/twice-daily-daytime.sh
0 0 * * 0 $HOME/code/dotfiles/cron/weekly.sh
0 * * * * $HOME/code/dotfiles/cron/every-hour.sh
0 0 * * 0 $HOME/code/dotfiles/cron/twice-a-week.sh
0 0 * * 4 $HOME/code/dotfiles/cron/twice-a-week.sh
# */15 * * * * $HOME/bin/temp-help.sh
#=====================================================================#

0 comments on commit 24064d6

Please sign in to comment.