Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Sending control sequence to printer before job Post 1356 by ianc on Wednesday 28th of February 2001 09:32:27 AM
Old 02-28-2001
Network

I am having difficulty sending a control sequence ESC&l5H (print to middle tray) to a HP printer (lp4).It is ignoring the command. I am using the following syntax in an executable file :

echo "'/033'&l5H" > /dev/lp4
lp -dlp4 filename


a) Is /033 'escape' ?
b) What is the correct syntax ?




 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to fire a print job on a printer at DHCP network??

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

Job control

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

sending control c in the loop

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

job/process scheduling or control

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

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

Unix Control M - Job selection critiria

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

how to control the exec sequence of subshell

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

Control-M Job trigger

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

Job Control

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

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
LPC(8)							      System Manager's Manual							    LPC(8)

NAME
lpc - line printer control program SYNOPSIS
/usr/sbin/lpc [ command [ argument ... ] ] DESCRIPTION
Lpc is used by the system administrator to control the operation of the line printer system. For each line printer configured in /etc/printcap, lpc may be used to: o disable or enable a printer, o disable or enable a printer's spooling queue, o rearrange the order of jobs in a spooling queue, o find the status of printers, and their associated spooling queues and printer dameons. Without any arguments, lpc will prompt for commands from the standard input. If arguments are supplied, lpc interprets the first argument as a command and the remaining arguments as parameters to the command. The standard input may be redirected causing lpc to read commands from file. Commands may be abreviated; the following is the list of recognized commands. ? [ command ... ] help [ command ... ] Print a short description of each command specified in the argument list, or, if no arguments are given, a list of the recognized commands. abort { all | printer ... } Terminate an active spooling daemon on the local host immediately and then disable printing (preventing new daemons from being started by lpr) for the specified printers. clean { all | printer ... } Remove any temporary files, data files, and control files that cannot be printed (i.e., do not form a complete printer job) from the specified printer queue(s) on the local machine. disable { all | printer ... } Turn the specified printer queues off. This prevents new printer jobs from being entered into the queue by lpr. down { all | printer } message ... Turn the specified printer queue off, disable printing and put message in the printer status file. The message doesn't need to be quoted, the remaining arguments are treated like echo(1). This is normally used to take a printer down and let others know why (lpq will indicate the printer is down and print the status message). enable { all | printer ... } Enable spooling on the local queue for the listed printers. This will allow lpr to put new jobs in the spool queue. exit quit Exit from lpc. restart { all | printer ... } Attempt to start a new printer daemon. This is useful when some abnormal condition causes the daemon to die unexpectedly leaving jobs in the queue. Lpq will report that there is no daemon present when this condition occurs. If the user is the super-user, try to abort the current daemon first (i.e., kill and restart a stuck daemon). start { all | printer ... } Enable printing and start a spooling daemon for the listed printers. status { all | printer ... } Display the status of daemons and queues on the local machine. stop { all | printer ... } Stop a spooling daemon after the current job completes and disable printing. topq printer [ jobnum ... ] [ user ... ] Place the jobs in the order listed at the top of the printer queue. up { all | printer ... } Enable everything and start a new printer daemon. Undoes the effects of down. FILES
/etc/printcap printer description file /usr/spool/* spool directories /usr/spool/*/lock lock file for queue control SEE ALSO
lpd(8), lpr(1), lpq(1), lprm(1), printcap(5) DIAGNOSTICS
?Ambiguous command abreviation matches more than one command ?Invalid command no match was found ?Privileged command command can be executed by root only 4.2 Berkeley Distribution November 1, 1996 LPC(8)
All times are GMT -4. The time now is 03:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy