Link to home
Start Free TrialLog in
Avatar of DarkNova
DarkNova

asked on

Printing to multiple spooled printers

Hi,
Avatar of DarkNova
DarkNova

ASKER

If people are confused by this, basically what would be ideal is if I could create a device called /dev/slp0 or something and if I issue the command "cat testfile.txt > /dev/slp0" then it would issue the command "lpr -PPRINTER0 < testfile.txt", and it would have devices /dev/slp1 for PRINTER1 and /dev/slp2 for PRINTER2. Then the program would work. These device files have to be some sort of pipes or devices though, because I tried writing a chmod 755 shell script and the program just overwrote it with its output (if it doesn't see it as a device it thinks its supposed to dump the output to that filename). Does this help any or is it more confusing now? Please post a comment if you have any questions.
ASKER CERTIFIED SOLUTION
Avatar of artemb
artemb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks. This works good. For anyone who's looking back at this response, note that the line that says:
COMMAND=$2
should read:
COMMAND=$1