ThatScriptGuy
04-08-2007, 03:22 PM
Basically, I've got a demo of a script available and every hour or so, I'd like to have it reset. So basically I need the bash script to execute the following commands:
1. rm -rf /home/demo.domain.com/public_html/*
2. Unpack files.tgz to /home/demo.domain.com/public_html/*
3. mysql -u [dbuser] -p[dbpass] -h localhost [dbname] < database.sql
I really just don't know anything about bash scripting, and I'm assuming that that is the best way to go about it...
Kevin
1. rm -rf /home/demo.domain.com/public_html/*
2. Unpack files.tgz to /home/demo.domain.com/public_html/*
3. mysql -u [dbuser] -p[dbpass] -h localhost [dbname] < database.sql
I really just don't know anything about bash scripting, and I'm assuming that that is the best way to go about it...
Kevin
