How to create a simple sh script?

Hi I've just set up a crontap to run a script script.sh once a week (it makes backups). How am I supposed to create the script, I want it to be able to run two commands that I would normally enter in the cp, delete a file and create a mysql dump,
I just plut the scripts in a text file I created using the pico function and put the first ssh (or telent) command the jumped a lind and put the second command, is this right ? in the crontab I just put :
0 0 * * 1 /path/to/file.sh

Will this run the 2 commands ? if not what should I do?

Thanks !

 

 

 

 

Top