How do I tee a linux print file

266 Views Asked by At

How would it tee a linux print file to print to a printer with jet direct but also send a second text file to a windows folder using command line?

1

There are 1 best solutions below

0
On

I don't know what do you mean by 'windows folder', but this would probably help you:

 $ command | tee file | lp

to save the output of command in file and send it to the default printer.