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
- /var/spool/qmailscan/
2.rm -f *.log
3.cd quarantine/new/
4.rm -f *
5.reboot
Step i use :
- vi /maintenance.sh
#!/bin/bash
cd /var/spool/qmailscan/
rm -f *.log
cd quarantine/new/
rm -f *
reboot
- 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