How to make crontab entry for mutiple server

1) create a required crontab entry as mentioned below and placed it in a file “cron_entry.ksh”

(crontab -l ; echo “#To monitor paging space usage”)| crontab
(crontab -l ; echo “0,10,20,30,40,50 * * * * /root/paging.ksh”)| crontab

2) scp the “cron_entry.ksh” on the common destination path (Ex: /tmp)

3) Run a for loop to execute and display the new crontab entry

for list in `cat server`
do
echo $list
echo “=====================”
ssh $list /usr/bin/ksh /tmp/cron_entry.ksh
echo
ssh $i crontab -l |tail -2
echo
done