Re: minicom questions, need expert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gene Heskett wrote:
--
Kevin J. Cummings
kjchome@xxxxxxx
cummings@xxxxxxxxxxxxxxxxxx
cummings@xxxxxxxxxxxxxxxxxxxxxxx
Registered Linux User #1232 (http://counter.li.org)
On Monday 12 May 2008, Mikkel L. Ellertson wrote:
Gene Heskett wrote:
But, this command line, which outputs to the screen very nicely if the
pipe and the rest of the line are removed, seems to send the data to
/dev/null:

#>cat /dev/ttyUSB1 | lpr -Plp1
Try something like:
cat /dev/ttyUSB1 | lpr -Plp1 -
or
cat /dev/ttyUSB1 | lpr -Plp1 -- -

Either of those give this:
[root@coyote ~]# cat /dev/ttyUSB1 | lpr -Plp1 -
lpr: Error - unknown option '
^C
[root@coyote ~]# cat /dev/ttyUSB1 | lpr -Plp1 -- -
lpr: Error - unknown option '-'!

Thanks.

From the lp man page:
lp submits files for printing or alters a pending job. Use a
filename of "-" to force printing from the standard input.

From the lpr man page:
       lpr submits files for printing. Files named on the command line are sent to the named printer (or the system default destination if  no
       destination is specified). If no files are listed on the command-line, lpr reads the print file from the standard input.

So:

cat /dev/ttyUSB1 | lpr -Plp1

should be all that's needed....

Mikkel





--
Kevin J. Cummings
kjchome@xxxxxxx
cummings@xxxxxxxxxxxxxxxxxx
cummings@xxxxxxxxxxxxxxxxxxxxxxx
Registered Linux User #1232 (http://counter.li.org)

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux