LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-07-2006, 11:10 PM   #1
daniel7713
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
Command to print to terminal emulator's default printer


Is there any command to print the file to terminal emulator's default printer?

I tried "cat test.txt > /dev/tty", but it just show the content of test.txt on the screen instead of printing to the default printer.

Pls help. Thanks.
 
Old 07-07-2006, 11:52 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi,

And welcome to LQ!

Commonly:
lpr test.txt



Cheers,
Tink
 
Old 07-08-2006, 10:36 AM   #3
daniel7713
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster
Hi,

And welcome to LQ!

Commonly:
lpr test.txt



Cheers,
Tink
I know this command can print to the printer setup in Linux.
But, this command will print the file to the default printer of terminal emulator in client side?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LPR command doesn't print on USB printer johnhome Linux - Hardware 2 05-03-2009 04:49 AM
Print jobs repeat infinetly on lpd printer attached to axis print server linux-who? Linux - Hardware 0 03-28-2006 12:24 PM
start print server and printer by default caulfiek SUSE / openSUSE 2 10-23-2005 03:09 PM
Change default printer using command BroX Slackware 6 08-18-2005 09:52 AM
Setting default printer from command line mihailolja Linux - Newbie 1 03-19-2004 03:49 PM


All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration