Depending on what os your using you could make a bash or shell script pretty easy