shell script to create and deploy posts