What you mean by printer name? Above command is already giving you printer names only. I ran above batch and got following ouput:
Here, Driver name means printer name. Like HP OfficeJet G95 etc.
Hi,
I would like to know , how to concatenate two command in one line and get the display in one screen
for eg
command 1 : ls -l /data/logs
command 2 : ls -l /data/errors
output shd be
/data/logs /data/errors
xx-xx-xx-xx abc.log xx-xx-xx-xx... (9 Replies)
Hi all,
Does anyone know how to ammend the .cshrc file in $HOME for your session to display the path as part of the command line? So that I dont need to keep on typing pwd to see where I am?
thanks
Ocelot (3 Replies)
All,
Is there any way out to display the nth line before the string is matched ???
Eg : If i have a file which has the following contents and if i want to get the
3rd line before the string is matched
a
b
c
d
e
f
if i give the input as f and lines before the match as 3 then it should... (5 Replies)
I have made a script to print size of a slice if it reaches more then 80% which is working fine no problem in it.
I want to add this script in crontab to print this message on command line every half hour if slice size reaches more then 80%.
here is the line below i added on crontab
30 *... (2 Replies)
I am looking to remove a line from /etc/cups/printers.conf file. In 10.04 when adding a printer through NoMachine a line gets added to the conf file called AuthInfoRequired username,password.
I am looking to make a script that will run as a cron to search for those lines in the conf file and... (2 Replies)
Hi ,
1)i want to display specific line number using tail command.
e.g. display 10 line from end.
Please help...
2)Want to display line 10 to 15 (from end)using tail command) (2 Replies)
if i want to display the contents of a file between say line number 3 and 10 then i use the following command
sed -n '3,10p' filename
if this 3 was contained in x and 10 was contained in y then how wud this command modified?
sed -n '$x,$yp' filename does not work..please advise (2 Replies)
Hello,
I've been doing Linux and AIX administration for years, but I'm very new to HPUX. We have an old audit process which involves someone manually using sam to generate user lists. I'd like to kill that old process with fire...
But...
After working a bit in the morning to try and pull... (3 Replies)
First month learning about the Linux terminal and it has been a challenge yet fun so far. We're learning by using a gameshell. I'm trying to display a certain line ( only allowed 1 command ) from a file only using the head or tail. I'm pretty about this answer:
head -23 history.txt | tail -1... (1 Reply)
Discussion started by: forzatekk
1 Replies
LEARN ABOUT DEBIAN
log::agent::driver::default
Agent::Driver::Default(3pm) User Contributed Perl Documentation Agent::Driver::Default(3pm)NAME
Log::Agent::Driver::Default - default logging driver for Log::Agent
SYNOPSIS
# Implicit use
use Log::Agent;
logconfig(-prefix => "prefix"); # optional
# Explicit use
use Log::Agent;
require Log::Agent::Driver::Default;
my $driver = Log::Agent::Driver::Default->make("prefix");
logconfig(-driver => $driver);
DESCRIPTION
The default logging driver remaps the logxxx() operations to their default Perl counterpart. For instance, logerr() will issue a warn() and
logwarn() will call warn() with a clear "WARNING: " emphasis (to distinguish between the two calls).
The only routine of interest here is the creation routine:
make($prefix)
Create a Log::Agent::Driver::Default driver whose prefix string will be $prefix. When no prefix is configured, the first letter of each
logged string will be uppercased.
CHANNELS
The "error", "output" and "debug" channels all go to STDERR.
BUGS
If logdie() is used within an eval(), the string you will get in $@ will be prefixed. It's not really a bug, simply that wrapping a code
into eval() and parsing $@ is poor's man exception handling which shows its limit here: since the programmer using logdie() cannot foresee
which driver will be used, the returned string cannot be determined precisely. Morality: use die() if you mean it, and document the string
as an exception.
AUTHOR
Raphael Manfredi <Raphael_Manfredi@pobox.com>
SEE ALSO Log::Agent::Driver(3), Log::Agent(3).
perl v5.10.0 2009-07-23 Agent::Driver::Default(3pm)