I am just wondering if it is good programming practice to use shell scripts in systems programming.
I am new to systems programming and am trying to figure out the best way to discover printers on a given system and display the results.
The easiest way I can think of is to run an exec command to run a shell script that will list the printers using
lpstat -a > printers.txt
and then parse the file printers.txt, display the information and then remove the file when done.