diff --git a/scripts/v6/ch10-04-bad-script.rsc b/scripts/v6/ch10-04-bad-script.rsc index 91b6404..eecd90f 100644 --- a/scripts/v6/ch10-04-bad-script.rsc +++ b/scripts/v6/ch10-04-bad-script.rsc @@ -1,7 +1,10 @@ -:global Filename "ch10-04-bad-script.rsc" +# filename: ch10-04-bad-script.rsc +# # A simple script to perform a series of tests on a # list of web sites. +:global Filename "ch10-04-bad-script.rsc" + # function to log error message :global LogMessageFunc do={ :global Filename; diff --git a/scripts/v6/ch10-05-error_check.rsc b/scripts/v6/ch10-05-error_check.rsc index 11c35ea..eb3948e 100644 --- a/scripts/v6/ch10-05-error_check.rsc +++ b/scripts/v6/ch10-05-error_check.rsc @@ -1,7 +1,7 @@ -# ch10-05-error-check.rsc +# filename: ch10-05-error-check.rsc :local WebSites { "badname1234.com"; "google.com"}; :foreach SiteName in=$WebSites do={ :local SiteIpAddress [:resolve $SiteName]; :put "Site IP for $SiteName is $SiteIpAddress"; -} \ No newline at end of file +} diff --git a/scripts/v6/ch10-06-error_check.rsc b/scripts/v6/ch10-06-error_check.rsc index 411d986..32f0d9b 100644 --- a/scripts/v6/ch10-06-error_check.rsc +++ b/scripts/v6/ch10-06-error_check.rsc @@ -1,4 +1,4 @@ -# ch10-06-error-check.rsc +# filename: ch10-06-error-check.rsc :local WebSites { "badname1234.com"; "google.com"}; :foreach SiteName in=$WebSites do={ :do { @@ -7,4 +7,4 @@ } on-error={ :put "Name lookup failed for $SiteName"; } -} \ No newline at end of file +} diff --git a/scripts/v6/ch10-07-bad-script.rsc b/scripts/v6/ch10-07-bad-script.rsc index 8144789..35b7902 100644 --- a/scripts/v6/ch10-07-bad-script.rsc +++ b/scripts/v6/ch10-07-bad-script.rsc @@ -1,6 +1,9 @@ +# filename: ch10-07-bad-script.rsc +# +# A simple script to perform a series of tests on a +# list of web sites. + :global Filename "ch10-07-bad-script.rsc" -# A script to perform a series of tests on a -# list of web sites. # function to log error messages :global LogMessageFunc do={ diff --git a/scripts/v6/ch10-08-bad-script.rsc b/scripts/v6/ch10-08-bad-script.rsc index e978be6..2c33842 100644 --- a/scripts/v6/ch10-08-bad-script.rsc +++ b/scripts/v6/ch10-08-bad-script.rsc @@ -1,7 +1,10 @@ -:global Filename "ch10-08-bad-script.rsc" -# A script to perform a series of tests on a +# filename: ch10-08-bad-script.rsc +# +# A simple script to perform a series of tests on a # list of web sites. +:global Filename "ch10-08-bad-script.rsc" + # set DEBUG to "true" for script debugging output, # "false" for normal operation :global DEBUG false; diff --git a/scripts/v6/ch10-09-simple-pause.rsc b/scripts/v6/ch10-09-simple-pause.rsc index ffb7efd..bb2520d 100644 --- a/scripts/v6/ch10-09-simple-pause.rsc +++ b/scripts/v6/ch10-09-simple-pause.rsc @@ -1,7 +1,7 @@ -# ch10-09-simple-pause.rsc +# filename: ch10-09-simple-pause.rsc # A simple script that includes a 2 second pause :put "Hello we're going to pause now..."; :delay 2; -:put "Pause complete. We're all done now!"; \ No newline at end of file +:put "Pause complete. We're all done now!"; diff --git a/scripts/v6/ch10-10-add-remove-vlans.rsc b/scripts/v6/ch10-10-add-remove-vlans.rsc index c5d877f..67aaa17 100644 --- a/scripts/v6/ch10-10-add-remove-vlans.rsc +++ b/scripts/v6/ch10-10-add-remove-vlans.rsc @@ -1,4 +1,4 @@ -# ch10-10-add-remove-vlans.rsc +# filename: ch10-10-add-remove-vlans.rsc # a script to add and remove 50 VLANs to/fromon-error={ # a Mikrotik router interface @@ -24,4 +24,4 @@ # add VLAN to LAN interface :local VlanName "VLAN$VlanId"; /interface vlan remove "$VlanName"; -} \ No newline at end of file +} diff --git a/scripts/v6/ch10-11-add-remove-vlans.rsc b/scripts/v6/ch10-11-add-remove-vlans.rsc index 49d912a..8cf2a61 100644 --- a/scripts/v6/ch10-11-add-remove-vlans.rsc +++ b/scripts/v6/ch10-11-add-remove-vlans.rsc @@ -1,4 +1,4 @@ -# ch10-11-add-remove-vlans.rsc +# filename: ch10-11-add-remove-vlans.rsc # a script to add and remove 50 VLANs to/from # a Mikrotik router interface @@ -20,4 +20,4 @@ # add VLAN to LAN interface :local VlanName "VLAN$VlanId"; /interface vlan remove "$VlanName"; -} \ No newline at end of file +} diff --git a/scripts/v6/ch10-12-add-remove-vlans.rsc b/scripts/v6/ch10-12-add-remove-vlans.rsc index ffa3ce0..2d601f4 100644 --- a/scripts/v6/ch10-12-add-remove-vlans.rsc +++ b/scripts/v6/ch10-12-add-remove-vlans.rsc @@ -1,4 +1,4 @@ -# ch10-12-add-remove-vlans.rsc +# filename: ch10-12-add-remove-vlans.rsc # a script to add and remove 50 VLANs to/from # a Mikrotik router interface @@ -28,4 +28,4 @@ } }]; -:put "Remove loop time: $RemoveLoopTime"; \ No newline at end of file +:put "Remove loop time: $RemoveLoopTime"; diff --git a/scripts/v7/ch10-04-bad-script.rsc b/scripts/v7/ch10-04-bad-script.rsc index 91b6404..c3e9080 100644 --- a/scripts/v7/ch10-04-bad-script.rsc +++ b/scripts/v7/ch10-04-bad-script.rsc @@ -1,6 +1,9 @@ -:global Filename "ch10-04-bad-script.rsc" +# filename: ch10-04-bad-script.rsc +# # A simple script to perform a series of tests on a -# list of web sites. +# list of web sites. + +:global Filename "ch10-04-bad-script.rsc" # function to log error message :global LogMessageFunc do={ diff --git a/scripts/v7/ch10-05-error_check.rsc b/scripts/v7/ch10-05-error_check.rsc index 11c35ea..eb3948e 100644 --- a/scripts/v7/ch10-05-error_check.rsc +++ b/scripts/v7/ch10-05-error_check.rsc @@ -1,7 +1,7 @@ -# ch10-05-error-check.rsc +# filename: ch10-05-error-check.rsc :local WebSites { "badname1234.com"; "google.com"}; :foreach SiteName in=$WebSites do={ :local SiteIpAddress [:resolve $SiteName]; :put "Site IP for $SiteName is $SiteIpAddress"; -} \ No newline at end of file +} diff --git a/scripts/v7/ch10-06-error_check.rsc b/scripts/v7/ch10-06-error_check.rsc index 411d986..32f0d9b 100644 --- a/scripts/v7/ch10-06-error_check.rsc +++ b/scripts/v7/ch10-06-error_check.rsc @@ -1,4 +1,4 @@ -# ch10-06-error-check.rsc +# filename: ch10-06-error-check.rsc :local WebSites { "badname1234.com"; "google.com"}; :foreach SiteName in=$WebSites do={ :do { @@ -7,4 +7,4 @@ } on-error={ :put "Name lookup failed for $SiteName"; } -} \ No newline at end of file +} diff --git a/scripts/v7/ch10-07-bad-script.rsc b/scripts/v7/ch10-07-bad-script.rsc index 8144789..35b7902 100644 --- a/scripts/v7/ch10-07-bad-script.rsc +++ b/scripts/v7/ch10-07-bad-script.rsc @@ -1,6 +1,9 @@ +# filename: ch10-07-bad-script.rsc +# +# A simple script to perform a series of tests on a +# list of web sites. + :global Filename "ch10-07-bad-script.rsc" -# A script to perform a series of tests on a -# list of web sites. # function to log error messages :global LogMessageFunc do={ diff --git a/scripts/v7/ch10-08-bad-script.rsc b/scripts/v7/ch10-08-bad-script.rsc index e978be6..2c33842 100644 --- a/scripts/v7/ch10-08-bad-script.rsc +++ b/scripts/v7/ch10-08-bad-script.rsc @@ -1,7 +1,10 @@ -:global Filename "ch10-08-bad-script.rsc" -# A script to perform a series of tests on a +# filename: ch10-08-bad-script.rsc +# +# A simple script to perform a series of tests on a # list of web sites. +:global Filename "ch10-08-bad-script.rsc" + # set DEBUG to "true" for script debugging output, # "false" for normal operation :global DEBUG false; diff --git a/scripts/v7/ch10-09-simple-pause.rsc b/scripts/v7/ch10-09-simple-pause.rsc index ffb7efd..bb2520d 100644 --- a/scripts/v7/ch10-09-simple-pause.rsc +++ b/scripts/v7/ch10-09-simple-pause.rsc @@ -1,7 +1,7 @@ -# ch10-09-simple-pause.rsc +# filename: ch10-09-simple-pause.rsc # A simple script that includes a 2 second pause :put "Hello we're going to pause now..."; :delay 2; -:put "Pause complete. We're all done now!"; \ No newline at end of file +:put "Pause complete. We're all done now!"; diff --git a/scripts/v7/ch10-10-add-remove-vlans.rsc b/scripts/v7/ch10-10-add-remove-vlans.rsc index 390cffd..a93e4ff 100644 --- a/scripts/v7/ch10-10-add-remove-vlans.rsc +++ b/scripts/v7/ch10-10-add-remove-vlans.rsc @@ -1,4 +1,4 @@ -# ch10-10-add-remove-vlans.rsc +# filename: ch10-10-add-remove-vlans.rsc # a script to add and remove 50 VLANs to/from # a Mikrotik router interface @@ -24,4 +24,4 @@ # add VLAN to LAN interface :local VlanName "VLAN$VlanId"; /interface/vlan remove "$VlanName"; -} \ No newline at end of file +} diff --git a/scripts/v7/ch10-11-add-remove-vlans.rsc b/scripts/v7/ch10-11-add-remove-vlans.rsc index 49d912a..8cf2a61 100644 --- a/scripts/v7/ch10-11-add-remove-vlans.rsc +++ b/scripts/v7/ch10-11-add-remove-vlans.rsc @@ -1,4 +1,4 @@ -# ch10-11-add-remove-vlans.rsc +# filename: ch10-11-add-remove-vlans.rsc # a script to add and remove 50 VLANs to/from # a Mikrotik router interface @@ -20,4 +20,4 @@ # add VLAN to LAN interface :local VlanName "VLAN$VlanId"; /interface vlan remove "$VlanName"; -} \ No newline at end of file +} diff --git a/scripts/v7/ch10-12-add-remove-vlans.rsc b/scripts/v7/ch10-12-add-remove-vlans.rsc index ffa3ce0..2d601f4 100644 --- a/scripts/v7/ch10-12-add-remove-vlans.rsc +++ b/scripts/v7/ch10-12-add-remove-vlans.rsc @@ -1,4 +1,4 @@ -# ch10-12-add-remove-vlans.rsc +# filename: ch10-12-add-remove-vlans.rsc # a script to add and remove 50 VLANs to/from # a Mikrotik router interface @@ -28,4 +28,4 @@ } }]; -:put "Remove loop time: $RemoveLoopTime"; \ No newline at end of file +:put "Remove loop time: $RemoveLoopTime";