Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Linux Printing Help?  (Read 4579 times)

0 Members and 1 Guest are viewing this topic.

pobrien31

    Topic Starter


    Newbie

    • Experience: Beginner
    • OS: Linux variant
    Linux Printing Help?
    « on: April 02, 2014, 03:02:16 AM »
    Hi,

    I'm after some assistance please?
    In the workplace I've just swapped from a unix to a linux environment (Red Hat Enterprise)

    My help query is around printing - In the unix world I used to run the following which would email me the queue status of printers on the box:

    mail="[email protected]" ***
    path="/var/spool/lpd/qdir/n0dcsdba"
    cd /
    for printer in $(lsallq)
    do
    if [$(find $path:$printer* -mmin +15 | wc -l) -ne '0' ]; then find $path:$printer* -mmin +15 -exec ls -als {} \; | mail -s $(find $path:$printer* -mmin +15 | wc -l)' documents queued in '$printer -v $mail; fi
    done

    ***  I've removed my email address :-)

    Can I do something similar in the linux world?

    I'm currently using the command line with the various lpstat commands, but I'm struggling visually to see outstanding jobs on print queues.

    Any and all help would be most appreciated - if you need me to supply any further info then please shout.

    Regards,
    Pat.