Not a linux user, but windows has .bat files which can run commands for you, is there a similar item for Linux, may be useful.