02-20-2019
yeah, u are right. This is just a test. So what is matched string and name is irelevant. Point must be the same. Find the model, this is what is string check. When find, ok it is here, find printer name. So if I search just CITIZEN, and have similar printers, it comming confused. What is the point? I use printer for something else. So I use printer name. Very important to find model which I have and want to use. I have several printers usb so I don't use that. Good example is CT-S310II, so i want that, but nevermind that is irelevant as i said ealrier.
Point #2 is that when I find S3100 in printers.conf, find FIRST <printer tag, without that, only to leave a name, but that I will do with awk, just dont know how to find that first line <Printer below matched string S3100.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm in need of finding out on how to mount and dismount printers.
Thx,
shawnnee (1 Reply)
Discussion started by: shawnnee
1 Replies
2. Linux
I want to print some thing in HP Deskjet 692.? (1 Reply)
Discussion started by: edvaldo
1 Replies
3. Solaris
Hi All,
I am trying to configure printer in solaris 10 with the help of print manager. There is no printer attached to my system, ia m doing it for test purpose. However I am unable to do so coz its pops up window - Heading as error with option as dismiss and cancel. Kindly help as I am... (3 Replies)
Discussion started by: kumarmani
3 Replies
4. AIX
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
5. Shell Programming and Scripting
Hello,
I'm rather new to the world of regular expressions and sed, though am excited by its possibilities. I have a particular task I'd like to achieve, and have googled the topic quite a bit. However, having found some codes that perform a task very similar to what I'd like to do, I can't for... (2 Replies)
Discussion started by: redseventyseven
2 Replies
6. Linux
Hi,
Is it possible to find the printer location and printer type (whether it is local or network) using command in Linux ?
Thanks in advance. (1 Reply)
Discussion started by: forumguest
1 Replies
7. Shell Programming and Scripting
I want to match the number exactly from the variable which has multiple numbers seperated by pipe symbol similar to search in egrep.below is the code which i tried
#!/usr/bin/perl
my $searchnum = $ARGV;
my $num = "148|1|0|256";
print $num;
if ($searchnum =~ /$num/)
{
print "found";
}... (2 Replies)
Discussion started by: kar_333
2 Replies
8. Shell Programming and Scripting
Hi,
I have file in my $datadir as below :-
SAT_1.txt
SAT_2.txt
BAT_UD.lst
BAT_DD1.lst
DUTT_1.txt
DUTT_la.txt
Expected result :-
should get all the above file in $<Filename>_file.lst
Below is my code :-
for i in SAT BAT DUTT
do
touch a.lst
cd $datadir (1 Reply)
Discussion started by: satishmallidi
1 Replies
enable(1) General Commands Manual enable(1)
NAME
enable, disable - enable/disable LP printers
SYNOPSIS
printers
[reason]] printers
DESCRIPTION
The command activates the named printers, enabling them to print requests taken by Use to find the status of printers (see lp(1) and
lpstat(1)).
deactivates the named printers, disabling them from printing requests taken by By default, any requests that are currently printing on the
designated printers are reprinted in their entirety either on the same printer or on another member of the same class. Use to find the
status of printers.
Options
recognizes the following options:
Cancel any requests that are currently printing
on any of the designated printers.
Associate a reason with the deactivation of the printers. This reason applies to all printers mentioned up to the next option.
If the option is not present or the option is given without a reason, a default reason is used. reason is reported
by The maximum length of the reason message is 80 bytes. reason message of length greater than 80 bytes is truncated
to 80 bytes.
EXTERNAL INFLUENCES
Environment Variables
determines the language in which messages are displayed.
If is not specified or is null, it defaults to (see lang(5)).
If any internationalization variable contains an invalid setting, all internationalization variables default to (see environ(5)).
International Code Set Support
Single- and multibyte character code sets are supported.
EXAMPLES
Enable printer to accept requests:
Deactivate printer and cancel any logged jobs:
WARNINGS
If the restrict cancel feature (selected by the option -- see lpadmin(1M)) is enabled, and the user is neither administrator nor the owner
of the currently printing request on the designated printer, ignores the option.
and perform their operation on the local system only.
FILES
SEE ALSO
lp(1), lpstat(1), accept(1M), lpadmin(1M), lpsched(1M), rcancel(1M), rlp(1M), rlpdaemon(1M), rlpstat(1M).
enable(1)