Log in

View Full Version : some type of script?


VonErich Lives
01-26-2006, 05:11 PM
Ok, every day I have to visit/print like 6 websites.

Doesn't take long, all in favorites and all... but is there some easy script one could create so I click a button and it does the whole process for me?

JiM PolPot v.W.o.
01-27-2006, 01:30 AM
If you are on linux you can write a script that uses wget and lpr.

Not sure on windows though. There is a option called "print" for the command line, but you will need a way to get the file off the net and render the HTML.

Your best bet is probably to look into perl or python. They have libraries for rendering HTML, printing to devices, and getting files from the internet. However, this is probably way over your head in terms of complexity.

This task seems like it is fairly common, so I bet if you search for perl scripts you will find it somewhere on the net.

The most straightforward way to do this is to set up a saved tab session on firefox that automatically opens all of the windows. You will still have to manually run the print though.