Crontab Problem for maintenance

hi All i have problem for crontab command for maintenance mail server.
we call crontab file is maintenance.sh on root directory
/maintenance.sh

is case we maintenance to delete .log dan .txt
in mail server, instruction is

  1. /var/spool/qmailscan/
    2.rm -f *.log
    3.cd quarantine/new/
    4.rm -f *
    5.reboot

Step i use :

  1. vi /maintenance.sh

#!/bin/bash
cd /var/spool/qmailscan/
rm -f *.log
cd quarantine/new/
rm -f *
reboot

  1. i edit crontab with crontab -e

0 0 * * * root /maintenance.sh

i want execute crontab everyday at time 24.00

Thanks for all solution and how to write crontab language.

Reggard

Moslemovic

The good link to learn about the crontab :

http://www.adminschoice.com/docs/crontab.htm