Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Printing 5 raw characters to a printer Post 302085499 by Friğrik on Thursday 17th of August 2006 02:21:14 PM
Old 08-17-2006
Update

Okay, here's a little update. I was playing around and decided to actually set the printer up using Mac's little GUI. I set it up as a Generic PostScript printer, called it Skuffa, and then ran:

echo '\033p07y' | lpr -P Skuffa

It, for the first time, worked! I was happy, until I found out that it had printed meters of some code, starting with the line "%!PS-Adobe-3.0".

Now, I don't want that to happen again. I think my problem was making the printer into a Generic PostScript printer instead of just a Generic one.

Are there any other tips you'd like me to consider about this command before I try this again?

(the register that this is connected to is actually being used at the moment, but I'd really like to finish this functionality today)
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Raw text to IP Printer

We were printing to a serial laser printer with all the HP codes to generate a form (i.e. lines, boxes, etc.) We are switching to an IP printer and we can no longer print to the device (i.e. cp text /dev/tty11). It looks like we have to use the lp spooler now. When we do this the codes are ignored... (0 Replies)
Discussion started by: jeffbugfree
0 Replies

2. SCO

Printing from SCO 5.05... to XP Shared Printer

I am having trouble getting our accounting program (on SCO 5.05) to print to a shared windows printer. We used to use a program that took care of this PCI print server or somehting like that. but when XP service pack 2 got installed somethign happened with the permissions and the files would... (2 Replies)
Discussion started by: LarryG
2 Replies

3. HP-UX

Printing Problem With Hp4250n Printer?

Hi all;:) I have the following strange problem with my network printer Hp Laser jet 4250n working with Hp9000 rp3410 Servers , it prints well under Microsoft windows operation system ,,, But under Hp Unix 11.1 applications such as text editor the printing font is very small (size 4) ; one... (2 Replies)
Discussion started by: Michel Boss
2 Replies

4. HP-UX

Printer Only Printing First Line

Hi all, I've got this issue which has me stumped. Any help would be greatly appreciated. Printers which i have added through SAM, as remote printers with their IP address, only print the first line. Any text file is sent through to the printer only prints the very first line of the file, and the... (18 Replies)
Discussion started by: nubix
18 Replies

5. UNIX for Dummies Questions & Answers

Printing Landscape to PCL 6 Printer

I've looked around and am able to print landscape to a PCL 5 printer with this command: lp -o landscape -o cpi=20 -o page-right=30 -o page-left=30 -d <printer> <file>. Which gives me a nice 200 columns. But, when I send the same output and the same commands to a PCL 6 printer, it comes... (3 Replies)
Discussion started by: tariqjamal
3 Replies

6. AIX

Printing to Local Printer.

This is an easy one but have no clue how to start. I am connecting via a PC running XP using putty. I have a printer attached to my PC. I need to print stuff. How can I set up this printer? Thanks !:eek: ---------- Post updated at 18:22 ---------- Previous update was at 16:38 ---------- The... (2 Replies)
Discussion started by: 300zxmuro
2 Replies

7. AIX

Problem with printing ps files to printer

We have a post script enabled printer setup. But when we send any .ps file using ps to this printer we are getting this error: Cannot print postscript file because No postscript print queue exists for this printer. Print queue name Xerox Printer name... (0 Replies)
Discussion started by: mansmaan
0 Replies

8. Solaris

No printing from PRINTRONIX P5215 printer with Solaris 10

No issue with HP Laserjet printer. Using same method (as below) to configure the Printronix printer in Solaris 9, no issue. Solaris with the Printronix Interface file (pnet.if) Configure Unix: 1)First download the pnet.if. 2) Log in to Unix server as root (or another username that... (1 Reply)
Discussion started by: KhawHL
1 Replies

9. UNIX for Beginners Questions & Answers

Tru64 Printing to something other than a printer

I have been searching for a solution to a printing issue for several months now and have come up with no decently working solution. Please give input. We have an old inventory control program running on TRU64 Unix V5.1B operating system. Around 2003 it was virtualized onto VMware via AVT's... (1 Reply)
Discussion started by: Ken_Snauffer
1 Replies

10. Solaris

Printer printing control codes

Solaris 10: Having some trouble with a new printer printing control codes. This is an HP MFP M632. Tried a few ppd files and without a ppd file using commands similar to the follow: lpadmin -p L4102A -v /dev/null -m netstandard -n... (1 Reply)
Discussion started by: kuliksco
1 Replies
WMDRAWER(1)						      General Commands Manual						       WMDRAWER(1)

NAME
wmdrawer -- a dockapp providing a drawer to launch applications SYNOPSIS
wmdrawer [-c, --configfile=FILE [-n, --instancename=NAME]] [-w, --windowed] [-h, --help] [-v, --version] DESCRIPTION
wmdrawer is a dock application (dockapp) that provides a drawer (retractable button bar) to conveniently launch applications. The drawer is retractable and animated. Several columns of buttons can been defined in the drawer. The configuration file is automaticaly reloaded if it changes. Multiple instances of the program can run at the same time. The buttons can be highlighted under the mouse cursor. A tooltip can be defined for each button. The drawer can be transparent (need SHAPE extension). Ability to launch several apps at once from the drawer. By holding down the key Shift or by using mouse buttons middle or right instead of left, you can keep the drawer opened. Adjustable behaviors: dock's image (logo), dock's width and height (for both min=12, max=128), automatic/manual opening and closing of the drawer, timeout value in miliseconds if automatic closing selected, drawer's opening direction and animation speed, mouse cursor type in the drawer, drawer's pseudo-transparency, icons' background image (only if transparency isn't activated), buttons' size (min=12, max=128), buttons' highlight type (0:none, 1:target, 2:shading), image used as highlight (target type only), color and darkening level for highlight (shading type only), drawer's border size, buttons' tooltips and tooltips' font OPTIONS
-c, --configfile=FILE [-n, --instancename=NAME] Use FILE as config file instead of the default (~/.wmdrawerrc) and optionaly set instance name. -w, --windowed Run in windowed mode. Useful for AfterStep, Fvwm, Sawfish and KDE users. -h, --help Show summary of options. -v, --version Show version of program. FILES
~/.wmdrawerrc is the default per-user configuration file. Here is a completely commented example. # Config file example for wmdrawer [general] # Dock's icon [optional] #dock_icon panel-drawer.png # Drawer's opening direction [required] # Top to bottom = 0 # Right to Left = 1 # Bottom to Top = 2 # Left to Right = 3 direction 2 # Image used for icons' background [optional] #icons_bg defaultTile.xpm # Allow icons' enlargement to fit them to buttons' size [optional, default 1] # 0 indicate that icons should never be larger than their original size. #icons_expand 1 # Activate the drawer's pseudo-transparency [optional, default 0] # if you choose transparency, icons_bg will be ignored #transparency 0 # dock's width: min=12, max=128 [optional, default=64] #dock_width 64 # dock's height: min=12, max=128 [optional, default=64] #dock_height 64 # buttons' size: min=12, max=128 [optional] # Useful for the people who want for example to have big icons # and to define several columns. #btns_size 32 # Icon's highlight type: 0, 1 or 2 [optional, default 2] # 0 : no highlight # 1 : target (unavailable if transparency is activated) # 2 : shading #highlight 2 # Image used as highlight [optional] # only used if you choice target type #highlight_img highlight.xpm # Tint icons by a specified color [optional, default #ffffff] # only used if you choice shading type #highlight_tint #ffffff # Shade icons at a specified level [optional, default 60] # only used if you choice shading type #highlight_sh 60 # Display buttons' tooltips [optional, default 1] #tooltips 1 # Tooltips' font [optional, default fixed] #tooltips_font fixed # Drawer's animation speed: 0, 1, 2, 3, 4 [optional, default 1] #animation_speed 1 # Mouse cursor in drawer: 0, 1, ..., 76 [optional, default 30] #cursor 30 # Auto opening of the drawer: 0, 1 [optional, default 0] #show_on_hover 0 # Auto closing of the drawer: 0, 1 [optional, default 0] #hide_on_out 0 # drawer's hiding timeout in miliseconds [optional, default 1000] #hide_timeout 1000 # Runs the dockapp in windowed mode: 0, 1 [optional, default 0] # Useful for AfterStep, Fvwm, Sawfish or KDE users. #windowed_mode 0 # Instance name so window manager can distinguish between multiple copies #instance_name distinguish_name # Drawer's border size in pixels [optional, default 1] #border_size 1 # Images directories [images_paths] /usr/share/pixmaps /usr/local/share/pixmaps/ # A first column with 5 buttons # Each button must be defined with this syntax: # (tooltip) (image) (command) [column] (X Terminal) (gnome-term.png) (xterm -bg black -fg wheat) (Galeon) (galeon.xpm) (galeon -s) (Sylpheed) (sylpheed.png) (sylpheed) (XChat) (xchat.png) (xchat) (MPlayer) (gnome-multimedia.png) (mplayer) # A second column with 5 buttons [column] (Xmms) (gnome-audio2.png) (xmms) (Gimp) (gnome-gimp.png) (gimp) (GQview) (gqview.png) (gqview) (Xcalc) (gnome-calc3.png) (xcalc) (GFtp) (gftp.png) (gftp) Look at /usr/share/doc/wmdrawer/wmdrawerrc.example for a copy of this example. SEE ALSO
wmaker (1) AUTHOR
This software is written and maintained by Valery Febvre (vfebvre@vfebvre.lautre.net). This manual page was written by Chris Wesley (chris@cwwesley.net) for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. OTHER INFO
wmDrawer's webpage is at http://people.easter-eggs.org/~valos/wmdrawer/. Here you can find info about wmdrawer and download the latest version. WMDRAWER(1)
All times are GMT -4. The time now is 07:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy