Almost exactly a year ago I wrote about automating git pull from github. I found myself in an environment where a) I wanted to do this b) PHP had been set up so that git pull didn't work. inotifytools to the rescue. First, write a password-like filename (see the old post) PHP script like this:
Then write a bash script:
while inotifywait -qre close_write pull
nohup ./gitpull.sh &.
Commenting on this Story is closed.