Cisco Headend System Release 2.7 User Guide

Page of 282
 
 
 
Examples of the cronCVT Utility in the crontab File 
 
4031374 Rev B 
253 
 
Examples of the cronCVT Utility in the crontab File 
This section provides two examples for adding an entry for the cronCVT utility to 
the crontab file of the DNCS. 
Every Minute 
To configure the cronCVT utility to run every minute, follow these instructions. 
1  As dncs user in an xterm window, type the following command  and then press 
Enter.  
crontab -l > /tmp/dncs.cron
 
2  Open the /tmp/dncs.cron file with a text editor. 
3  Add an entry (on one line), similar to the following, to the crontab file: 
* * * * * [ -f /dvs/dncs/bin/dncsSetup ] && (. 
/dvs/dncs/bin/dncsSetup ; /dvs/dncs/Utilities/cronCVT -z ) 
> /dev/null
 
4  Save and close the file. 
5  Type the following command  and then press Enter.  
crontab /tmp/dncs.cron
 
6  Type 
crontab -l
 and then press Enter to verify that the entry was added 
successfully. 
Every 10 Minutes 
To configure the cronCVT utility to run every 10 minutes, follow these instructions. 
1  As dncs user in an xterm window, type the following command  and then press 
Enter
 
crontab -l > /tmp/dncs.cron
 
2  Open the /tmp/dncs.cron file with a text editor. 
3  Add an entry (on one line), similar to the following, to the crontab file: 
0,10,20,30,40,50 * * * * [ -f /dvs/dncs/bin/dncsSetup ] && 
(. /dvs/dncs/bin/dncsSetup ; /dvs/dncs/Utilities/cronCVT -z 
) > /dev/null
 
4  Save and close the file. 
5  Type the following command  and then press Enter.  
crontab /tmp/dncs.cron
 
6  Type 
crontab -l
 and then press Enter to verify that the entry was added 
successfully.