I have recently been experimenting and exposing myself to Linux thanks to the Raspberry Pi, but after a lot of researching, I found a way to sync a folder to all nodes on my local web server. I am learning about clustered environments and how clusters generally work. I had the Pi's so I thought why not feast. :D
Question is however, I have the script onchange.sh to execute it properly so that it syncs to all the other local remote hosts, I need to be in the directory. I am using pyplate as my CMS so directory is /usr/share/pyplate.
How does one achieve this so that when I boot up the Pi's, it automatically changes directory to /usr/pyplate and then runs the script.
Thanks and sorry about the lengthy post, I thought explanation was necessary.