Sponsored Content
Top Forums Shell Programming and Scripting How to check if printer is out of paper using perl script ? Post 302780263 by jim mcnamara on Thursday 14th of March 2013 08:14:35 AM
Old 03-14-2013
This is highly printer specific. You need to go to your printer manufacturer's website and find out what language/PDL/printer driver the printer uses - PCL, ps, etc.

Next figure out what the printer query string is. From the website's downloads.
Then you have to send the printer query to the printer with perl - probably via ssh.

Since you have the docset already at hand, the manufacturer may already have some kinfd of tool already written.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl script to check free disk space

hello, I have to check the free space on the disk that would work both on Windows and Unix platform e.g on C: \ for Windows and / on Unix. I could use Unix command 'df ' ( my windows system has Unix emulator cygwin and could run 'df ' as well). But I'd like not to rely on system command but... (1 Reply)
Discussion started by: susja
1 Replies

2. AIX

Check printer queue on Windows printer server

Hello Let me first give a small overview of the setup. All printers are connected to Windows 2000 servers. There are a lot of UNIX (AIX & HP-UX) servers as well which have SAP running. I'm working on a script to add printers to a specified SAP instance. I want to verify the user input (to... (0 Replies)
Discussion started by: NielsV
0 Replies

3. Shell Programming and Scripting

perl script to check if empty files are created and delete them and run a shell script

I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies

4. Shell Programming and Scripting

Perl Variable Check Script

I am working on a perl script that is used to update a list of hosts to a certain file but I am having an issue when I try to perform a check to make sure the user enters valid information. The following is what I have currently written for the script: IPINPUT: print "Enter IP Address: ";... (2 Replies)
Discussion started by: Takau
2 Replies

5. Shell Programming and Scripting

Please check perl script

#!/usr/local/bin/perl #$path = perl; #use File::stat; use Time::localtime; sub ExampleFiles{ $today = time; $today -= $today % 86400; $return_value = 0; $mtime = (stat("$_")) || die "cannot stat file $!"; $size = (stat("$_")); # size in... (3 Replies)
Discussion started by: ellechim
3 Replies

6. Shell Programming and Scripting

perl check email script not seeing attachment

The following script does pull the sender and Subject of the email but it is not seeing the attachment name. I know there is an attachment. I line in red SHOULD pull the filename out. this line is in the message: Content-Disposition: attachment; filename="Picture 243.jpg" ... (1 Reply)
Discussion started by: Ikon
1 Replies

7. HP-UX

Setting printer paper length using unix commands

Hi Guys, I have been trying to resolve a printing problem but nothing works out . I have an Epson LQ 680 (dot matrix printer) . I need to print a file . The paper length should be 34 .Left margin should be 5. I have tried the following things after researching from the man pages. pr -t... (24 Replies)
Discussion started by: Kar1234
24 Replies

8. Shell Programming and Scripting

Perl script to check uname options

I am trying to read the /etc/security/limits.conf file to match with my specifications. Specification should match below : nofile=131072 noproc=131072 memlock=3500000 I have written a perl script to read the file: #!/usr/bin/perl $FILE1 = "/home/sriram/perl_scripts/limits.conf";... (2 Replies)
Discussion started by: sriram003
2 Replies

9. Shell Programming and Scripting

Help with Perl script that can check a URL and notifiy when changes occur

I'm a scripting newbie and I'm trying to learn. No better way than being assigned a project. So basically, I'm trying to come up with a script that can periodically check a URL and then notify when changes occur to the file. So what I'm thinking is that I need to devise a PERL script that... (3 Replies)
Discussion started by: adam1mc
3 Replies

10. Shell Programming and Scripting

Shell/perl script to check for files

Hi, I am trying to write a script for following scenario: I have a list of countries from where I receive files...eg. (Indonesia, Thailand, Australia...etc) For each country, I have a list of files that they send. IND -- a,b,c TH -- p,q,r AU -- x,y,z The path for these files could... (2 Replies)
Discussion started by: neil.k
2 Replies
PCL3OPTS(1)						      General Commands Manual						       PCL3OPTS(1)

NAME
pcl3opts -- determine options for the ghostscript driver pcl3 from a PCL-3+ file SYNOPSIS
pcl3opts [-o output_file] [input_file ...] DESCRIPTION
The command pcl3opts is intended to help in determining which options one should use when calling ghostscript using pcl3 for driving a PCL-3+ printer. It analyzes one or more PCL input_files and issues on the output_file its best guess as to which options one should spec- ify in order to produce files using a similar configuration. The default output_file is standard output. If no input_files are specified, the command reads from standard input. This command is mostly of interest if you have access to PCL files generated by software provided by the printer's manufacturer, for exam- ple if you have a manufacturer-supplied Microsoft Windows driver for your printer. In that case you can generate a few files under Windows using different settings and let pcl3opts examine them. LIMITATIONS
Note that pcl3opts cannot guarantee that the collection of options it proposes leads to a file which is understood by the printer. It can merely provide a best guess. In addition, some settings require interpretation of the page contents in order to properly translate them into options for pcl3 and some cannot reliably be derived from a PCL file at all. Finding good values for these parameters is beyond pcl3opts's capabilities. This includes LeadingEdge, SendBlackLast, Tumble and the distinction between the colour models CMY+K and CMYK. SEE ALSO
gs-pcl3(1) AUTHOR
Copyright (C) 2000, 2001 by Martin Lottermoser, GreifswaldstraBe 28, 38124 Braunschweig, Germany. E-mail: Martin.Lottermoser@t-online.de. Version of this reference page: $Revision: 1.10 $ ($Date: 2001/02/10 17:01:06 $). pcl3 3.2 PCL3OPTS(1)
All times are GMT -4. The time now is 01:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy