Changeset 696 in ntrip for trunk/BNC/bnchelp.html
- Timestamp:
- Feb 20, 2008, 3:58:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnchelp.html
r694 r696 411 411 <p><a name="advscript"><h4>3.8.4 Advisory Script - optional </h4></p> 412 412 <p> 413 As mentioned previously, BNC can trigger a shell script or a batch file to be executed when one of the events described are reported. This script can be used to email an advisory note to network operator or stream providers. To enable this feature, specify the full path to the script or batch file in the 'Script' field. The affected mountpoint and type of event reported ('Begin_Outage', 'End_Outage', 'Begin_Corrupted' or 'End_Corrupted') will then be passed on to the script as command line parameters (\%1 and \%2 on Windows systems or \$1 and \$2 on U NIX/Linuxsystems).413 As mentioned previously, BNC can trigger a shell script or a batch file to be executed when one of the events described are reported. This script can be used to email an advisory note to network operator or stream providers. To enable this feature, specify the full path to the script or batch file in the 'Script' field. The affected mountpoint and type of event reported ('Begin_Outage', 'End_Outage', 'Begin_Corrupted' or 'End_Corrupted') will then be passed on to the script as command line parameters (\%1 and \%2 on Windows systems or \$1 and \$2 on Unix/Linux systems). 414 414 </p> 415 415 <p> … … 422 422 #!/bin/bash 423 423 sleep $((60*RANDOM/32767)) 424 cat | mail -s " BNC: $2 Stream$1" email@address <<!424 cat | mail -s "NABU: $1" email@address <<! 425 425 Advisory Note to BNC User, 426 Please note a $2 advisory from BNC for stream $1 dated `date`. 426 Please note the following advisory received from BNC. 427 Stream: $* 427 428 Regards, BNC 428 429 !
Note:
See TracChangeset
for help on using the changeset viewer.