03-08-2001
I'm not sure what you are trying to accomplish using the echo. I've only been doing this for a few years, but I think the echo won't set the printer. We usually use pre-defined drivers with pcl or a script to do this.
Here is an example of a few lines from a script to setup a printer for landscape. We have an iteractive menu driven script for our end users to direct and print files.
PRINTERID=printer
INITLJ4="\033E\033&l1o5.45c2a66F\033(12U\033(s10H\033&l5H\033(s0p10h0s0b4099T\03
3&k11.6H"
FONTLJ4="\033(s0p16.67h8.5v0T\033&k7.0H"
RESETLJ4="\033E\033&l0o\033(s10H\033&l5H\033(s0p10h0s0b4099T\033&k11.6H"
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I have an issue related to printing on a printer at DHCP network.
We have n numbers of printers which can be attached to n numbers of telnet clients of a server. Telnet sessions can be obtained from any machine and any available printer will be attached to that machine. Our aim is to... (2 Replies)
Discussion started by: pankajgupta
2 Replies
2. Shell Programming and Scripting
Hello,
What is the best way to control the running of scripts?
For example, i have a k1.ksh script java pgm that checks to make sure that the file counts in a particular directory are equal to a total file count value in a control file updated from my PC.
If i run this k1.ksh script and... (3 Replies)
Discussion started by: bobk544
3 Replies
3. Shell Programming and Scripting
I want to go through the list of items and run it.
while running it, some of them will have either
>there is no response # and then end it... so that it can go to next item
OR
>there is response # but in order to break out of it, u need to do Control c.
How do you send control... (6 Replies)
Discussion started by: hankooknara
6 Replies
4. Shell Programming and Scripting
Hi forum,
I have a problem concerning job or process scheduling and control.
I have to run 24 jobs (could be more sometimes less) of the same programme with different parameters. The machine this code is running on is an 8-core machine, so I was thinking that running all the processes at once... (0 Replies)
Discussion started by: deiphon
0 Replies
5. UNIX for Advanced & Expert Users
can some one give me some link about process and job control commands (2 Replies)
Discussion started by: alokjyotibal
2 Replies
6. UNIX for Advanced & Expert Users
Hello all,
Being new to UNIX and Control-M I've runned in some kind of trouble.
If I'm not mistaking Control M performs job selection upon 3 main criteria:
1- If a Job is or is not critical
2- The job's priority
3- Job's "Time From, time until" parameter
Mi question concerns the... (1 Reply)
Discussion started by: gforbice
1 Replies
7. Shell Programming and Scripting
I have a proc like this.
main.sh
echo "#######################################starts"
echo "Task begins at" `date`
shell1.sh
wait
shell2.sh
echo "####################################### ends"
I want to execute these shells in order within crontab control.
But sometimes it runs ... (4 Replies)
Discussion started by: robbiezr
4 Replies
8. HP-UX
Hi, I'm totally new in Control-M and I really need some help. Here's my problem.
I need to make job X from a server trigger job Y from a different server where job X must receive a confirmation first before execution. :confused:
I really have no idea on how to do that so can you please give... (1 Reply)
Discussion started by: criphaze22
1 Replies
9. Shell Programming and Scripting
Using a named pipe. Run a find in the background starting in the working directory While this is happening wait for input from the user to ask him which file to find. If the user does not enter any data in 10 seconds ask the user again. Then see if the requested file name is found from the output... (0 Replies)
Discussion started by: kattak1511
0 Replies
10. Solaris
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
LEARN ABOUT OPENSOLARIS
gsinterface
GSinterface(1) General Commands Manual GSinterface(1)
NAME
GSinterface - LP interface script for using ghostscript under lpsched
SYNOPSIS
GSinterface [request-id] [user] [title] [copies] [options] [files]
DESCRIPTION
This shell script is intended to be uses as an LP interface script on Solaris 2.6 and later systems. It allows print queues to be config-
ured under LP using Ghostscript to render for the printer.
Configuration under lpsched is performed via the lpadmin(1M) command.
# lpadmin -p printer -v /dev/... -I"postscript,pdf" -Tunknown
-i /usr/sfw/share/ghostscript/interfaces/GSinterface
-o GS_DEVICE=(gs-device-type)
[-o OutputFile=(file/device)] [-o PAPERSIZE=(size)]
[-o RESOLUTION=XxY] [-o banner-type=(ascii|postscript)]
[-o GS_OPTIONS="-sIjsServer=... -sIjsParams=..."]
Valid values for the GS_DEVICE setting can be obtained from Ghostscript by running: "gs -h". This will dump a variety of information about
Ghostscript's usage and compile time configuration. The "Available devices:" section lists the formats that Ghostscript will render to.
You will need to match one of these formats to the format that your printer takes as input.
EXAMPLES
To configure a Canon Bublejet 800c (NeWSprinter CL+) printer connected to an ECP parallel port:
# lpadmin -p printer -v /dev/ecpp0 -I"postscript,pdf" -Tunknown
-i /usr/sfw/share/ghostscript/interfaces/GSinterface
-o GS_DEVICE=bjc800
# accept printer
# enable printer
To configure an HP DeskJet 990 printer connected via a USB interface using IJS support:
# lpadmin -p printer -v /dev/usb/lp1 -I"postscript,pdf" -Tunknown
-i /usr/sfw/share/ghostscript/interfaces/GSinterface
-o GS_DEVICE=ijs
-o GS_OPTIONS="-sIjsServer=hpijs -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel='DESKJET 990' -DIjsUseOutputFD"
# accept printer
# enable printer
SEE ALSO
gs(1)
Ghostscript 15 October 2002 GSinterface(1)