Changeset 696 in ntrip for trunk/BNC/bnchelp.html


Ignore:
Timestamp:
Feb 20, 2008, 3:58:50 PM (16 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnchelp.html

    r694 r696  
    411411<p><a name="advscript"><h4>3.8.4 Advisory Script - optional </h4></p>
    412412<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 UNIX/Linuxsystems).
     413As 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).
    414414</p>
    415415<p>
     
    422422#!/bin/bash
    423423sleep $((60*RANDOM/32767))
    424 cat | mail -s "BNC: $2 Stream $1" email@address &lt;&lt;!
     424cat | mail -s "NABU: $1" email@address &lt;&lt;!
    425425Advisory Note to BNC User,
    426 Please note a $2 advisory from BNC for stream $1 dated `date`.
     426Please note the following advisory received from BNC.
     427Stream: $*
    427428Regards, BNC
    428429!
Note: See TracChangeset for help on using the changeset viewer.