News for hackers. Stuff that matters.
Re:Expect – automates programs that expose a text terminal i... by coley on Monday March 25, 2013 @10:30AM (#5437123)
I used expect a while back to write a small bash script that logs into my server via ssh and pulls the latest commit from Github. I have this set to run on an Alfred command 'deploy site name'.

This is much more secure, in my opinion, than using a webhook to deploy new commits.

You may have to tweak it a bit to get it working with your specific ssh agent forwarding and ssh keys by only by deleting a few lines, but it works out of the box without those features.

https://gist.github.com/srcoley/3299526

There are no comments on this comment yet.