02-15-2014
Unfortunately the sort doesn't work
But not problem, you helped me a lot!!
EDIT: My mistake... Works perfect!!!
You're the master!
10 More Discussions You Might Find Interesting
1. IP Networking
Here's a question I received on a test recently. I'm new to Linux/Unix so if this is easy, don't kill me. What scripting or tools could you use to count and sort the number of connections from each internal host? I'd appreciate any feedback and resources.
"The Cisco PIX firewall provides... (5 Replies)
Discussion started by: daveohr
5 Replies
2. UNIX for Dummies Questions & Answers
Hi
I have a complex script which outputs a text file for loading into a db.
I now need to enhance this script do that I can issue an ‘lp' command
to show the count of the number of records in this file.
Can anybody give me the necessary syntax ? (2 Replies)
Discussion started by: malts18
2 Replies
3. Shell Programming and Scripting
..... (3 Replies)
Discussion started by: elbee11
3 Replies
4. Shell Programming and Scripting
Hello,
I have a file like following:
ALB_13554 1 1 1
ALB_13554 1 2 1
ALB_18544 2 0 2
ALB_18544 1 0 1
This is a sample of my file, my real file has 441845 number of fields. What I want to do is to calculate the number of 1 and 2 in each column using AWK, so, the output file looks like... (5 Replies)
Discussion started by: Homa
5 Replies
5. UNIX for Dummies Questions & Answers
Hi!
I wanted to simplify my bash prompt, so I edited my etc/bashrc file. I thought this was the file that would override any other env files. When I opened it, I saw that the way it was setup was not what my prompt looked like, although I forget exactly what was there. But i edited it the way I... (1 Reply)
Discussion started by: sudon't
1 Replies
6. Shell Programming and Scripting
Can you explain what this line of script is doing.
What I have understood is :
-- variable C is the name of a software which is either not installed, so it must be installed or allready installed and then should be update if newer version found
-- branch B="$B $C" is to install the software
--... (4 Replies)
Discussion started by: jcdole
4 Replies
7. Red Hat
ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I... (7 Replies)
Discussion started by: zachs
7 Replies
8. Shell Programming and Scripting
Hey everyone,
I have a bunch of lines with values in field 4 that I am interested in.
If these values are between 1 and 3 I want it to count all these values to all be counted together and then have the computer print out
LOW and the number of lines with those values in between 1 and 3,... (2 Replies)
Discussion started by: VagabondGold
2 Replies
9. Shell Programming and Scripting
Hi all,
Below is a script I'm writing and giving me error:
#!/usr/bin/sh
if ; then
echo "Success!"
else
echo "Failure!"
fi
Normally if I do ps -ef|grep dw.sap|wc -l it gives me output of 18. So my script checks if it's greater than 17 it echoes success else failure
... (5 Replies)
Discussion started by: frum
5 Replies
10. Shell Programming and Scripting
ENVIROMENT
Linux: RHEL 6.4
Log Path: /usr/iplanet/servers/https-company/logs
Log Format: user.log.03-15-2015
I have log4j log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I need a script that will run daily that... (1 Reply)
Discussion started by: admin_job_admin
1 Replies
LEARN ABOUT DEBIAN
www::mediawiki::client::exceptions
WWW::Mediawiki::Client::Exceptions(3pm) User Contributed Perl Documentation WWW::Mediawiki::Client::Exceptions(3pm)
NAME
WWW::Mediawiki::Client::Exception - exception handling for WWW::Mediawiki::Client
SYNOPSIS
use WWW::Mediawiki::Client::Exception;
use Data::Dumper;
# throw
eval {
WWW::Mediawiki::Client::LoginException->throw(
error => 'Something bad happened',
res => $res,
cookie_jar => $cookie_jar,
);
};
# catch
if (UNIVERSAL::isa($@, 'WWW::Mediawiki::Client::LoginException') {
print STDERR $@->error;
print Dumper($@->res);
}
DESCRIPTION
A base class for WWW::Mediawiki::Client exceptions.
SUBCLASSES
WWW::Mediawiki::Client::URLConstructionException
Indicates a problem with the URL with which we to the Mediawiki server.
WWW::Mediawiki::Client::AuthException
Indicates a problem with the provided authentication information
WWW::Mediawiki::Client::LoginException
Indicates that login failed for an unknown reason
Fields:
res For the apache response object returned by the attempt to log in.
cookie_jar
For the cookie jar which was returned by the attempt to log in.
WWW::Mediawiki::Client::CookieJarException
Something went wrong saving or loading the cookie jar
WWW::Mediawiki::Client::FileAccessException
Something went wrong saving or loading a file
WWW::Mediawiki::Client::FileTypeException
The file which we attempted to operate on is not a .wiki file
WWW::Mediawiki::Client::AbsoluteFileNameException
The file which we attempted to operate on is not a .wiki file
WWW::Mediawiki::Client::CommitMessageException
There is a problem with the commit message
WWW::Mediawiki::Client::CommitException
Something went wrong while committing a change
WWW::Mediawiki::Client::PageDoesNotExistException
There is no such page, either here or on the server
WWW::Mediawiki::Client::UpdateNeededException
The page on the server has changed since the local file was last updated
WWW::Mediawiki::Client::ConflictsPresentException
An attempt was made to commit a file containing conflicts
WWW::Mediawiki::Client::CorruptedConfigFileException
The configuration file cannot be parsed.
WWW::Mediawiki::Client::ServerPageException
Something went wrong fetching the server page.
Throws:
res The apache response object which was returned in the attempt to fetch the page.
WWW::Mediawiki::Client::ReadOnlyFieldException
Client code tried to set a read-only field.
SEE ALSO
Exception::Class
AUTHORS
Mark Jaroski <mark@geekhive.net>
Author
Bernhard Kaindl <bkaindl@ffii.org>
Inspired the improvement in error handling and reporting.
LICENSE
Copyright (c) 2004 Mark Jaroski.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-02-12 WWW::Mediawiki::Client::Exceptions(3pm)