How can I load PCL font using command line?

We have a software that requires a signature font to be uploaded to the printer beforehand.  if the printer power cycles, the font is lost and paper is wasted.  This usually happens when a brown out occurs overnight.
Our font vendor has a command line windows software that can upload the font to the printer.  It costs 100.00. 
I'd really love to find a way to upload this file using linux.  The page is generated on linux so i could incorporate the command into that process.
Anyone know of free software to do this on linux or windows?  or maybe programming documentation?

i think i found the answer on another site
http://mdn.morovia.com/kb/Download-Select-Remove-PCL-Fonts-10002.html
Configuration 2: Network Printer Server
When the printer is connected to a TCP/IP network directly, the best method is to send commands through lpr command. A TCP/IP device may be identified with a full qualified DNS name, or an IP address. In our test lab, we assigned our network printer a fixed IP address 192.168.1.22, and we use this address in the examples below. Inlpr manual page, it is also referred as Printer Name.
Another name you will need is Queue Name. The queue names are names assigned to the “processors” in the print server. Many print servers and network printers hardcode their queue names. Some allow you to define your own queue. On HP JetDirect printer servers, the raw PCL queues are named as raw, raw1, raw2 and raw3. In this article we use rawas the queue name.
Note thatlpr command only accepts 1 file at a time. However, the step1 and step2 commands must be sent in one stream, otherwise the printer discards them altogether. As a result, you will need to merge those three files into one first. On Windows, you can use copy command:
copy /b C80D.txt +mrvcode39_4pitch.sfp +c5F.txt total.bin
On Linux/Unix platforms, use cat command:
cat c80D.txt mrvcode39_4pitch.sfp c5F.txt > total.bin
Now we can send these files (Windows):
lpr -S 192.168.1.22 -P raw -ol total.bin lpr -S 192.168.1.22 -P raw -ol data.txt
You need to replace the IP address, the queue name and the file name with the appropriate ones in your environment.
On Linux/UNIX platforms, things are more complicated. The configuration varies from platform to platform. Generally you need to set up the printer first. On RedHat Linux, this can be done using printtool. You assign a printer name (queue name) in the configuration, and you use this name in lpr command. Assume that the name is HPPrinter, the lpr command on RH Linux becomes:
lpr -P HPPrinter -o raw total.bin lpr -P HPPrinter -o raw data.txt

Similar Messages

  • How to call a ODI Job using Command line?

    Hello All,
    Please help me on this..
    How to call an ODI Job using Command line?
    Thanks
    Ravikiran

    Generate a scenario of your package. Then go to <ODI_HOME>/oracledi/agent/bin in command prompt and invoke startscen command .
    startcmd.sh OdiStartScen -SCEN_NAME=scn_load_data -SCEN_VERSION=001 -CONTEXT=GLOBAL -AGENT_CODE=odiSchedAgent001
    Bhabani
    http://dwteam.in

  • How to purge data cache table using command line

    Hi:
    Is there a way to purge the data cache table using command line?
    thanks!

    Thanks, Mike.
    I'm thinking about the ldconsole provided with ALDSP.
    The ldconsole has a link for purging the cache. Is there anything I can leverage from there? Is it a JMX component that I can call?

  • How to create user in workspace using command line with Internal APEX

    Hi fellows,
    I'm newbie with APEX and my i try doing something different. I need to build one application in Internal for create users in another workspaces. So, for do this, need use command line and PL/SQL code.
    I know exists a CREATE_USER procedure. But, this procedure just create a user in Internal, not in workspace, like i want.
    Its possible? Someone can help me?
    Example of create_user procedure:
    BEGIN
      APEX_UTIL.CREATE_USER(
         p_user_name => 'NEWUSER2',
         p_first_name => 'FRANK',
         p_last_name => 'SMITH',
         p_description => 'Description...',
         p_email_address => '[email protected]',
         p_web_password => 'password',
         p_developer_privs => 'ADMIN:CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL',
         p_default_schema => 'MY_SCHEMA',
         p_allow_access_to_schemas => 'MY_SCHEMA2',
         p_change_password_on_first_use => 'N',
         p_attribute_01 => '123 456 7890');
    END;
    Thank you.

    Did you try it like this?
    DECLARE
       l_workspace_id      number;
    BEGIN
        l_workspace_id := apex_util.find_security_group_id (p_workspace => 'MY_WORKSPACE_NAME');
        apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
      APEX_UTIL.CREATE_USER(
         p_user_name => 'NEWUSER2',
         p_first_name => 'FRANK',
         p_last_name => 'SMITH',
         p_description => 'Description...',
         p_email_address => '[email protected]',
         p_web_password => 'password',
         p_developer_privs => 'ADMIN:CREATE:DATA_LOADER:EDIT:HELP:MONITOR:SQL',
         p_default_schema => 'MY_SCHEMA',
         p_allow_access_to_schemas => 'MY_SCHEMA2',
         p_change_password_on_first_use => 'N',
         p_attribute_01 => '123 456 7890');
    END;

  • How can I load an applet using Java Plug-in?

    I have written an applet and have tested with appletviewer, but I can't load it from a browser. Ghlin told me that I need to use Java Plug-in to load it. Please tell me how.

    Click on the Products and API link at the top left of this page. Download the Java Plugin. Be sure to get the developers version. Inside that developer's version there is a tool called HTMLConverter. Run HTMLConverter on your HTML and it will modify the applet tag in such a way that if the user already has the Java Plugin then it will use it. IF not, then the user will be asked if he wants to download it.

  • How can I change the fonts used in Yosemite

    It would appear that Apple have gone out of their way to make OS X as difficult to use as possible with the change of fonts colours. To make matters worse it would appear we all have to adhere to the Apple accessibility rules if we want to change anything ! Guys, the world is more complex.
    I don't have any visual impairment as such other than I'm in my 50's so i'm in that vari-focal time of life, which is normal. That means a bit more definition on the font helps - so I'd like to change the font & maybe the font size across the entire system. I can do that in M$ Windows !
    I'd like to change the colours of the fonts used in some applications e.g.. Mail where for some completely mad reason Apple are using a grey font, on a grey background, a mustard font on a white background. MAD. What idiot comes up with this stuff & who signs it off ??????? Once again all this is easy to change on every other OS I've worked with (Solaris, Linux, Windows).
    Now you might think that I'm Apple bashing, I guess I am in a way but I've been an Apple user for more than 15 years, I have iMac, Macbook, Macbook Pro, Macbook Air, 3 iPads, iPhone. I like the products but things are not as configurable as they should be. Just allowing people to click a couple of radio buttons to switch to different modes on the display DOESN'T cut it.

    Too old to care now.

  • How can i change printer settings from command line

    hello 
    i want to use command that changes printer to print grayscale or color 
    the best i find is to use: rundll32 printui.dll,PrintUIEntry
    but i cant find color settings there 
    i would like your help with that 
    thanks alot !

    We may have to wait for an update.  Aside from changing the country, I'm not sucre this can be done.  There is no Health App in the System preferences and no  way to modify from within the app.  Weird.
    If you go to Language & Region under general settings and choose any other country, you will get Metric.  I have the opposite problem.  I live in a Metric country and want my health app to be in lbs and inches which is what I am used to.

  • How can I find out on the command line, when the last time machine backu succeeded?

    For verification of ~60 MacBooks, I'd like to write a script that posts status of the last backup via mail or HTTP call to our central server. How can I lookup this information?

    Launch the Console application by entering the first few letters of its name into a Spotlight search. Select "system.log" from the file list. Enter "backupd" (without the quotes) in the Filter text field. The timestamp of the last log entry containing the string "Backup completed successfully" is the time of the last successful backup.

  • How can I run my program on command line?

    I'm having some trouble trying to run my program on command line.
    I get a message saying "Exception in thread
    "main" java.lang.NoClassDefFoundError: Rectangle
    <a href="http://img145.imageshack.us/my.php?image=untitled2copylh2.jpg" target="_blank"><img src="http://img145.imageshack.us/img145/3002/untitled2copylh2.th.jpg" border="0" alt="Free Image Hosting at www.ImageShack.us" /></a>
    import java.util.Scanner;
    public class Rectangle
    public static void main(String[] args)
    int width;
    int height;
    int count = 1;
    Scanner scan = new Scanner (System.in);
    System.out.println("Please enter the width of the rectangle: ");
    width = scan.nextInt();
    System.out.println("Please enter the height of the rectangle: ");
    height = scan.nextInt();
    while (count <= width)
    if(width < 1 || width > 30)
    throw new IllegalArgumentException("The numbers must be in range");
    if(height < 1 || height > 30)
    throw new IllegalArgumentException("The numbers must be in range");
    for (int star = 1; star <= height; star++)
    System.out.print("*");
    System.out.println();
    count++;
    }

    What doesn't work?
    When you type javac Rectangle.java do you get error messages? Does it create the file Rectangle.class? If yes, type java Rectangle and your program should run. If you get an error post it but if you followed earlier advice you should be able to solve the problem yourself.

  • How can I list the fonts used in a Keynote presentation?

    I want to share a Keynote file with a colleague, but I imagine that I've used fonts (typefaces) in my presentation that she does not have.
    How do I list all the fonts I used so that I can share the fonts with her, also?
    Thanks.
    --Larry Anderson   adelarry (at) me (dot) com

    Hello,
    this SQL should help:
    db2 "select schemaname from syscat.schemata"

  • How can I maintain the font used in Adobe Edge Animate for Adobe Muse website?

    I used a png file which is working perfect and then used the font Montez in Edge Animate for 2 titles, however once I published the file(live) to muse it a totally different font. Is there something in particular I need to do in Animate to avoid alteration of font. Help!

    The original photo gallery is:
    http://www.bethanyjanedavies.com/portfolio.html
    You can see that the right side is chopped off
    But I may have to compromise and use:
    http://www.bethanyjanedavies.com/portfolio2.html
    This is a much wider page than the rest of the website, but I suppose you have to find a compromise that works!!
    Cheers
    Helen

  • How can I control the mouse by command-line ?

    Hi,
    Does anybody know if there is any command that I can use to control the mouse event, like: move cursor to some place, click, double-click, etc.?
    Thank you!
    ps. what I want to do is to bind keyboard to mouse, so that I can use keyboard to control the mouse, but I want to try some algorithms of controlling.

    I'm not aware of mousekeys being configurable, but switch to it:
    alt-shift numlock
    then try the number pad.
    EDIT: Or were you looking for something an easy binding to xlib as in swarp?
    Last edited by vogt (2008-02-15 04:44:25)

  • How can I darken the font and grid lines in ICal Lion

    Hi,
    The font and gridlines in ICal Lion are entirely too light for my eyesight. Can I somehow darken the color of these?
    Thanks

    Sometimes it takes me a while to remember this stuff. The issue is that these invisible folders are actually symlinks and not real folders. They behave differently. Here's something that used to work and may still:
    Open Terminal in the Utilities folder:
    cd /
    nano .hidden
    Press RETURN after each line. In the editor listing enter, one line each, home and net. CTRL+O to save the file. Now log out and log back in or restart. The files should be invisible.
    Beyond this requires downloading the XTools in order to use one developer tool not included with OS X.

  • How to register a DIP profile using command line

    Hi All,
    Am trying to register a profile in OID11.1.1.5 as shown below, but i face the below error message.
    I have set the JAVA_HOME, PATH, ORACLE_HOME, WL_HOME as suggested in document.
    Any pointers would be helpful
    [orasso@company bin]$ ./manageSyncProfiles -h cdceasso1.company.com -p 7005 -D weblogic -ENABLE
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: oracle/ldap/odip/wlst/ManageSyncProfiles
    Caused by: java.lang.ClassNotFoundException: oracle.ldap.odip.wlst.ManageSyncProfiles
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    Could not find the main class: oracle.ldap.odip.wlst.ManageSyncProfiles. Program will exit.
    [orasso@company bin]$

    Generate a scenario of your package. Then go to <ODI_HOME>/oracledi/agent/bin in command prompt and invoke startscen command .
    startcmd.sh OdiStartScen -SCEN_NAME=scn_load_data -SCEN_VERSION=001 -CONTEXT=GLOBAL -AGENT_CODE=odiSchedAgent001
    Bhabani
    http://dwteam.in

  • How can I limit the fonts in the Character Map (charmap) and reinitialize the state after use?

    In a WPF application I have a RichTextBox in which users will be inserting text. I also must give the user the ability to insert characters. To do so I have called up charmap.exe using
    Process charProcess = new Process();
    ProcessStartInfo startInfo = new ProcessStartInfo();
    charProcess.StartInfo.FileName = strCharmap;
    charProcess.Start();
    etc., and it works fine. There are several problems I have basically with charmap, however, not with WPF. The first is that because of the subsequent use of the user’s insertion in the RTB, I must restrict the font to “Ariel Unicode
    MS.”  So far all I have been able to do is instruct and warn the user not to change fonts and 
    change back any font change that occurs as a result of use of “Advanced view” features.
    Question number one is, how can I restrict the fonts loaded into charmap to this one font? The second problem is that if another font is called up, or the “Advanced view” state of charmap is closed, or a “Group by” feature is opened, these choices will
    be retained for the next user that opens charmap. How can I initialize the state of charmap for each new user with the correct font and “Advanced view” features showing. It is said,but in old posts, that reinitialization occurs for all but administrative users,
    but this seems to be no longer true. I have tried permission changes in charmap’s Properties, but I can’t get the necessary reinitialization to occur even if user’s don’t have modify permission. Can one use a .ini file, or the .mui file, or make Registry changes
    to accomplish my goals. There seems to be a warning in the .mui file about changing fonts, but is it cancelled? I am using Windows 7 and C#.
    I have looked at other character maps but they are either too complicated for the casual user, or they have no search engine and advanced features, or they have the same problems.
    I am pretty much a novice with respect to the Windows files use and WPF, so please be fairly clear, complete, and prescriptive in your answer. Also so that I and others can learn, it would be nice to have an explanation of why one does whatever you suggest.
    Your help is appreciated.

    Hi,
    Thanks for your post!
    According to your description, I am afraid your problem is out of support in C#language forum. So i move your thread to off-topic forum!
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and
    makes it easier for other visitors to find the resolution later.

Maybe you are looking for

  • Burning DVD from project in iMovie

    I am a beginner and have done my first project in iMovie with a size of 11,9 Gb. It is in iMovie just the way I want it with music and effects. I tried to burn it on a 4,7 Gb DVD and thought I could put in a new one when the first was filled up but i

  • Album art not downloading

    I updated both Macs in our house with the Apple security update this evening and the latest version of iTunes as software update prompted us to do this at the same time. I have purchased songs on both computers since (iBook G4 and iMac G5 both runnin

  • Oracle Service Bus Proxy Testing with Attached Policy

    Hello, When I'm testing a Proxy through the test console (lauch by clicking the bug) I'm seeing Override Values in the Security section. I've created four custom policies and attached two of them to the proxy. One that processes the request and the o

  • Some doubts regarding APD

    Hi Friends, I am working on APD for the first time. While working on it, I came across the following doubts/questions: 1. If we have created a query as the source for APD and transactional ODS as target in Dev. Now, I want to transport this APD in QA

  • ITunes error after update

    After a recent update to iTunes on my HPNetbook computer I began receiving the following message      "AppleSyncNotifier.exe - Entry Point Not Found           "the procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link