I want to scan a file from terminal. What is the command for that? I also want to print the same file on a different printer, thus making a copier. I want to put it together into a shell script. I know how to make a script, but I need the commands.
Edit 1: the scanner is usb and the printer is LAN and setup with CUPS.
Edit 2: I want the script to scan and print the document.