"When they first started working on it, I already had
the code layout to accomplish such a task in my head as PHP, but I
wasn't quite sure how I would run the PHP code locally on a Windows
system let alone print to a local printer using PHP.
"That's when it hit me, BASH!
"No, nothing bashed me in the head, I am referring to GNU BASH.
I knew that it would be an easy task in BASH, a couple variables, a
simple "while loop", an "if", and the print command "lpr". Here's
what I got:"