LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Damn i need help haha (https://www.linuxquestions.org/questions/linux-newbie-8/damn-i-need-help-haha-720720/)

ds10415 04-21-2009 01:12 PM

Damn i need help haha
 
Ok people before i ask for your help thank you for helping me out.
i have two questions. I am running REDHAT

Which commands can you use from the command line to send a file to the default printer?

which commands list your outstanding print jobs?

again thank you for your help in this matter:)

farouqp 04-21-2009 01:22 PM

to see waiting jobs you can try lpq and that will show print jobs that are waiting

to send a file to print via command lpr.

i recon though the best way is to go to the file location run cat (filename) | lpr

tredegar 04-21-2009 04:35 PM

Quote:

which commands list your outstanding print jobs?
lpq if I recall correctly.

If you are not sure which command to use, try the apropos command eg apropos queue gives me this:
Code:

tred@vaio:~$ apropos queue
at (1)              - queue, examine or delete jobs for later execution
atd (8)              - run jobs queued for later execution
atq (1)              - queue, examine or delete jobs for later execution
atrm (1)            - queue, examine or delete jobs for later execution
batch (1)            - queue, examine or delete jobs for later execution
ipcrm (1)            - remove a message queue, semaphore set or shared memory id
lpq (1)              - show printer queue status
mq_overview (7)      - Overview of POSIX message queues
SDL_PeepEvents (3)  - Checks the event queue for messages and optionally ret...
SDL_PushEvent (3)    - Pushes an event onto the event queue
SDL_SetEventFilter (3) - Sets up a filter to process all events before they a...
tc-bfifo (8)        - Packet limited First In, First Out queue
tc-cbq (8)          - Class Based Queueing
tc-cbq-details (8)  - Class Based Queueing
tc-pfifo (8)        - Packet limited First In, First Out queue
tc-pfifo_fast (8)    - three-band first in, first out queue
tc-sfq (8)          - Stochastic Fairness Queueing
XAllowEvents (3)    - release queued events
XCheckIfEvent (3)    - check the event queue with a predicate procedure
XEventsQueued (3)    - handle output buffer or event queue
XFlush (3)          - handle output buffer or event queue
XIfEvent (3)        - check the event queue with a predicate procedure
XPeekIfEvent (3)    - check the event queue with a predicate procedure
XPending (3)        - handle output buffer or event queue
XPutBackEvent (3)    - put events back on the queue
XSync (3)            - handle output buffer or event queue
tred@vaio:~$

apropos queue | grep print would save you some reading, but is more typing:
Code:

tred@vaio:~$ apropos queue | grep print
lpq (1)              - show printer queue status
tred@vaio:~$



All times are GMT -5. The time now is 07:55 PM.