Sponsored Content
Operating Systems SCO Printer is winning the battle! (for now) Post 302721787 by TheSniper on Thursday 25th of October 2012 07:34:51 PM
Old 10-25-2012
JGT,
Thanks, first off.
I swear i have tried that exact line and location....
till I saw the 0's you added?
My code echo
Code:
"\033\170\061\033\153\0\c"

your version echo
Code:
"\033\0170\061\033\0153\0\c"

How and where did you know to add that?
-Sam


Quote:
Originally Posted by jgt
Code:
while [ $i -le $copies ]
do
    for file in $files
    do
        echo "\033\0170\061\033\0153\0\c"
        0<${file} eval ${FILTER} 2>&1
        echo "\033e\c"   # or whatever the escape sequence is to return the printer to its power on settings
        #echo "\014\c"     # "Remed out by SR to stop extra from feed..."   "
    done
    i=`expr $i + 1`
done

If you want to be really fancy, echo the escape sequences into a file, and then add a -o file_name to the lp statement.
Code:
=1
while [ $i -le $copies ]
do
    for file in $files
    do
        0< /usr/spool/lp/bin/$5  #because of the shift statement, you should copy $5 to a variable before the shift statment
        0<${file} eval ${FILTER} 2>&1
        echo "\033e\c"   # or whatever the escape sequence is to return the printer to its power on settings
        #echo "\014\c"     # "Remed out by SR to stop extra from feed..."   "
    done
    i=`expr $i + 1`
done

 

2 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Winning Lotto...

I purchased a ticket for Lotto which was the drawing date on 03-15-10, and when i see it now to know who wins, there is no winner while the winner number is 363? So how is the drawing process?does it also consider the ticket number which is not purchased?:confused: (4 Replies)
Discussion started by: malcomex999
4 Replies

2. What is on Your Mind?

Alita Battle Angel - Happy Valentines Day

Just saw Alita Battle Angel with my Valentine and we really liked it. Hope many will go see it so they will make a sequel. https://www.unix.com/members/1-albums221-picture1089.jpg (0 Replies)
Discussion started by: Neo
0 Replies
Mouse::Util(3pm)					User Contributed Perl Documentation					  Mouse::Util(3pm)

NAME
Mouse::Util - Utilities for working with Mouse classes VERSION
This document describes Mouse version 0.99 SYNOPSIS
use Mouse::Util; # turns on strict and warnings DESCRIPTION
This module provides a set of utility functions. Many of these functions are intended for use in Mouse itself or MouseX modules, but some of them may be useful for use in your own code. IMPLEMENTATIONS FOR
Moose::Util functions The following functions are exportable. "find_meta($class_or_obj)" The same as "Mouse::Util::class_of()". "does_role($class_or_obj, $role_or_obj)" "resolve_metaclass_alias($category, $name, %options)" "apply_all_roles($applicant, @roles)" "english_listi(@items)" Class::MOP functions The following functions are not exportable. "Mouse::Util::is_class_loaded($classname) -> Bool" Returns whether $classname is actually loaded or not. It uses a heuristic which involves checking for the existence of $VERSION, @ISA, and any locally-defined method. "Mouse::Util::load_class($classname) -> ClassName" This will load a given $classname (or die if it is not loadable). This function can be used in place of tricks like "eval "use $module ()"" or using "require". "Mouse::Util::class_of($classname_or_object) -> MetaClass" "Mouse::Util::get_metaclass_by_name($classname) -> MetaClass" "Mouse::Util::get_all_metaclass_instances() -> (MetaClasses)" "Mouse::Util::get_all_metaclass_names() -> (ClassNames)" mro (or MRO::Compat) "get_linear_isa" Sub::Identify "get_code_info" Mouse specific utilities "not_supported" "get_code_package" "get_code_ref" SEE ALSO
Moose::Util Class::MOP Sub::Identify mro MRO::Compat perl v5.14.2 2012-06-30 Mouse::Util(3pm)
All times are GMT -4. The time now is 01:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy