User manual

Sensorsoft Alert User Manual
89
-h mailserver
sleep 60 # prevents server bind address not available issue
/usr/bin/scomd -F /etc/scomd_port1.ini ttyS1
fi
# end of routine notification shell script
3. Run the following command to add execute privilege to the shell script:
# chmod +x /home/routine_notify.sh
4. Using vi create a setup file /home/scomsetup2.ini and add the following content to it:
PortBitRate=1200
DelayAfterOpen=2
MaxRetriesOnError=2
ProbeTimeout=10
FormatDelimiter=new_line
Command=read_data
UnitofMeasure=C
5. Run the crontab scheduler edit command:
# crontab -e
Add the following line to the crontab scheduler and save it (uses the vi editor). In this example the
crontab scheduler runs the shell script at 7:00 AM everyday:
00 07 * * * /home/routine_notify.sh
6. Edit the file /etc/config_files and add the following line at the top of the file:
/var/cron/tabs/root
7. Save the above changes in flash memory using the following command:
# saveconf
8. Triple check all of the above files for correct entries. If additional changes are made, run the
saveconf command again. To test the shell script for proper operation run it from the command
line without using the crontab scheduler as follows:
# /home/routine_notify.sh