Hello, my name is John McPherson. I work as a contractor for the DOL, and I am trying convert some code I maintain in an application to send output files to a printer. Right now, the code( a bash script) just slowly prints the output file on the screen, and the customer wants to have it sent to the printer instead. I work on a 64-bit Oracle( Sun) system with Solaris 11 as the Operating System. I have tried the command
lpr -h -l $showfl
in the bash script, but that just errors off without printing. I kept searching online with google search, and found the command
fmt -u -w 200 $showfl | lpr
but that also just errored off without printing. I finally found a Solaris man page on google that listed all of the system commands, and I could not find the lpr or fmt command on the man page. I have to think that Solaris allows the user to send files to the printer, and I am just missing something when I try to update the bash script. Note that in the width specification of my second attempt, I have a large number. That is actually correct, these output files do have a lot of columns, and I am trying force the printer to print the output as landscape, not portrait. I was using the -h and -l options to block printing a banner page, and have the printer just print the output as it was sent. If anybody can help me get these output files to print from Solaris 11, it would be greatly appreciated.