setpagedevice (postscript)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting setpagedevice (postscript)
# 1  
Old 11-04-2009
setpagedevice (postscript)

Basically, I'd like to apply a printer tray selection on postscript files by means of a (Bash) shell script.

What works on a Xerox DocuColor 5000, is this (exemplified for one tray):

Code:
sed "s/BeginPageSetup/&\n<<\/MediaColor (red)>> setpagedevice/" -i page.ps

Every attempt to do so on a Xerox DocuPrint 180, though, fails miserably Smilie

What worked on the latter printer but refuses to do so for my postscript files:

Code:
sed "s/BeginPageSetup/&\n<<\/MediaType (red) \/MediaColor (red)>> setpagedevice/" -i page.ps

Any one any idea Smilie I'm as stuck as can be ...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

How to print postscript files?

Hi, I am looking for a quick answer. How to print postscript files by using gs command? Let's say the HP printer's hostname is pname and the document name is pfile. The OS is RHEL 4 with cups enabled. I've read gs man but didn't get it well. Thank you in advance! (1 Reply)
Discussion started by: aixlover
1 Replies

2. AIX

Printing Postscript files through Infoprint Manager to a Postscript printer

Hello, I am runnning Infoprint Manager 4.3 on AIX 5.2 . There is no problem printing AFP files, but I have hit a snag trying to use "AIX DSS" or "Other Printer" actual destinations to send unconverted Postscript files to native Postscript printers. The files are big, and they print correctly,... (0 Replies)
Discussion started by: ahetzel
0 Replies

3. UNIX for Dummies Questions & Answers

Creating a PostScript File

Hi All, I have a requirement, where i have create a pdf file in unix. I have gone through few links and understood that it could be done in 2 step manner. - Create a .ps PostScript file. - Pass .ps file to p2pdf command to create the pdf. But i am having trouble creating the .ps file. I... (3 Replies)
Discussion started by: abhisheksunkari
3 Replies

4. UNIX for Dummies Questions & Answers

Splitting a postscript file

Hi , I have a problem .. I have a post script file which has text as %%colur code :uyiu %% pagesize :9808 %%page: 1 1 %%color:78798- %%ufgfhre %%Page: 2 1 I need to create two files with this one post script file . the first file should have data till what is in %%Page: 1 1 ... (4 Replies)
Discussion started by: selvapraveen
4 Replies

5. UNIX and Linux Applications

KickStart postscript problem

Hello everyone: Im not going to explain about kickstart, i supposed you know, that one of the features of this program is to run a postscript after installation.So after install packages you can run a set of commands to make a "first-configuration" of your system. Usually people writes... (0 Replies)
Discussion started by: trutoman
0 Replies

6. Shell Programming and Scripting

manipulate postscript via sed

dear all, on solaris10 for x86 i am trying to modify the creation date of a postscript file with sed in a csh script. sed is driving me crazy though...i think due to the spaces in the string i am trying to substitute?? part of the postscript file: %!PS-Adobe-3.0... (3 Replies)
Discussion started by: lada niva
3 Replies

7. UNIX for Dummies Questions & Answers

UNIX and PostScript

Hi! Iīm wondering if itīs possible to use PostScript in UNIX. I have a client that want to install a HP ColorPro GA in a UNIX network and I donīt have any experience about UNIX. Is UNIX using PostScrip by deafault, like a Mac or does he need to install some form of RIP? Best regards <Therapy> (2 Replies)
Discussion started by: <Therapy>
2 Replies

8. UNIX for Dummies Questions & Answers

postscript reader for hp-unix

sorry, it is a dumb question, but i could not find any answer in anything else. does anybody know whether there is any postscript file reader for HP-Unix? :) (1 Reply)
Discussion started by: sskb
1 Replies

9. UNIX for Dummies Questions & Answers

postscript printing

How do I setup a printer queue to do postscript printing using UNIX commands? I setup a remote host/printer using the admintool (solaris), but it does not let me specify that this printer will print postscript. (1 Reply)
Discussion started by: pkappaz
1 Replies
Login or Register to Ask a Question
ALLTRAY(1)							AllTray Manual Page							ALLTRAY(1)

NAME
AllTray - Dock any program into the system tray. SYNOPSIS
alltray [program] [options] DESCRIPTION
With AllTray you can dock any application with no native tray icon (like Evolution, Thunderbird, Terminals) into the system tray. A high-light feature is that a click on the "close" button will minimize back to system tray. It works well with Gnome, KDE, XFCE 4*, Fluxbox* and WindowMaker*. Xmms is supported in particular. Click-Mode: Only run alltray and click on the window you would like to dock. (Abort with <c>) OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. -h --help Show summary of options. -v --version Show version of program. -d --debug Show debug messages. -s --show Do not hide window after start. -i --icon Use a PNG image as an icon. -l --large_icons allow large icons (> 24x24). -st --sticky visible on all workspaces. -stask --skip-taskbar not visible in taskbar. -x --borderless remove border, title, frame (if not supported native). -m --menu Add entry "menu text:command" to popdown menu. -t --title Show title change for <sec> seconds. Probably most useful for xmms. -g --geometry initial position. see man X. -k --key [Modifier:]Key create a keyboard shortcut. Modifier -> "Shift", "Control", "Alt", "AltGr" Key -> "a", "F1", "End" ... or "Keycode" (Number) returned by the program "xev" -nt --notray display no tray icon (useful only with the "--key" option). -nm --nominimize click on window close button: do not minimize back to system tray, close. -conf --configure show KDE configuration dialog. HOMEPAGE
http://alltray.trausch.us AUTHOR
This manual page was written by Carlos C Soto <csoto@sia-solutions.com> for the GNU/Linux system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version pub- lished by the Free Software Foundation. AllTray (C) 2005, Jochen Baier <email@jochen-baier.de> Version 0.71 2010-02-07 ALLTRAY(1)