Assuming you're on Windows all you need to do is install ActivePerl 5.12 from
http://www.activestate.com/activeperl/downloads. Just download the right one for your operating system ! Then in Windows Explorer right-click on the icon for the downloaded .msi file and select the
Install option.
Then copy & paste the Perl script into Notepad and save the file as html2txt.pl
Create the .bat file to run the command - just copy and paste
perl html2txt.pl http://192.168.1.254/cgi/b/events/?be=0
into Notepad and save as log.bat. It's important that this file is in the same folder as html2txt.pl.
To run it, just open a command line Window - using the command
cmd Navigate to the folder where you put html2txt.pl and log.bat.
In the command line window give this command:
log.batTo save the results in a file:
log.bat > results.txtTo append to existing results file:
log.bat >> results.txtPerl isn't perhaps the easiest scripting language, but you shouldn't have to change anything.
Maybe Python is simpler to learn, but by chance I found an existing Perl script as the starting point for writing my own
ST546 logging software. And since then I've gradually learnt more and more about Perl.
Cheers,
Peter