Hi, In my company we are using sendmail for our mail server.
For some security reason user are allowed to use the service from 8.30AM to 5.30AM (working hours) only. How to write a shell script to start and stop the send mail service automatically everyday, so that the system admin don't have to do it manually. I understand that, I have to use cron jobs.. but did not know how to do it. I checked the file /etc/crontab file which contains the following: SHELL=/bin/bash PATH = /sbin...... MAILTO=root HOME=/ #run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 0 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly #sysstat 0 * * * 0,6 /usr/lib/sa/sa1 600 6 & 5 19 * * * /usr/lib/sa/sa2 -A & Where and how should I add the new cron job? What is function of the anacrontab in the /etc directory? Please guide me. Some sample script will be helpful. Thanks in advance. Regards, Ganesh -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list