12-21-2012
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
So last week I posted about my system that will not completely boot. It reports a bad trap and reboots in an endless cycle. I'm at a point where I just want to wipe the system clean, reload the software and basically start from scratch.
I can interrupt the boot cycle and get to an ok prompt.... (2 Replies)
Discussion started by: forbin24
2 Replies
2. Solaris
Hi
Im using a Sun blade 1500 with solaris 8 and when the monitor goes to stand by mode, the machine doesnt return to the normal mode anymore. Then i have to reboot it always.
Does anybody have a clue how can i solve it or turn off the stand by mode?
Thanks (2 Replies)
Discussion started by: dougpss
2 Replies
3. UNIX for Dummies Questions & Answers
Hello to all!
In the OK prompt, which command should I use to see RAM memory, CPU, and disks partition and capacity?
I have in my hands an ancient Ultra5 machine, which Im trying to install Solaris, but don't know if the configuration is the original one.
Thanks! (4 Replies)
Discussion started by: Pablo_BR
4 Replies
4. Programming
Suppose that I have some data:
12,30
12,45
2,3
7,8
3,9
30, 8
45,54
56,65
Where (a,b) indicates that a is connected to b. I want to get all connected nodes to one point. For instance, the output of the above
example should be something like:
Group 1
2,3
3,9
Group 2
12,30
12,45... (4 Replies)
Discussion started by: Legend986
4 Replies
5. Solaris
Hi.
I got this message in our sun station and it stuck
Setting default IPv4 interface for multicast: add net 224.0/4: gateway pecsun22
but i can still telenet the station...
who could i fix this..
appreciate your help (7 Replies)
Discussion started by: eykyn17
7 Replies
6. Solaris
Hi all,
I was wondering how to change the PS1 to my liking?
I tried changing it using PS1='my choice'
it worked but the subsequent terminals i open will not have it as the default PS1 ,how do i change it?
also i am running as super user, and i need to exec bash, to get the bash environment...... (4 Replies)
Discussion started by: wrapster
4 Replies
7. Solaris
Hi,
Due to some changes at our company, we lost the password for the root and sms-svc account on the primary system controller (E25K).
We connected a serial console to the system controller but we never managed to break the session to bring it to the OK prompt.
(tried: ~#, ~ b, ~, , a b,... (9 Replies)
Discussion started by: Solarius
9 Replies
8. Solaris
Hi All,
I got a big problem here.
While setting up a sun cluster, I accidentally tried out "bootadm update-archive" as I was unable to bring the cluster up.
After which, i tried a reconfiguration reboot.
Now The system is always booting into maintanence mode with error message... (8 Replies)
Discussion started by: manojsomanath
8 Replies
9. UNIX for Dummies Questions & Answers
how to Change the % prompt to - prompt in unix
:wall:
---------- Post updated at 07:40 AM ---------- Previous update was at 07:38 AM ----------
How To display the last modification time of any file in unix
---------- Post updated at 07:40 AM ---------- Previous update was at 07:40 AM... (2 Replies)
Discussion started by: manjiri sawant
2 Replies
10. Solaris
Hi,
on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies
LEARN ABOUT DEBIAN
webservice::cia::parser
WebService::CIA::Parser(3pm) User Contributed Perl Documentation WebService::CIA::Parser(3pm)
NAME
WebService::CIA::Parser - Parse pages from the CIA World Factbook
SYNOPSIS
use WebService::CIA::Parser;
my $parser = WebService::CIA::Parser->new;
my $data = $parser->parse($string);
DESCRIPTION
WebService::CIA::Parser takes a string of HTML and parses it. It will only give sensible output if the string is the HTML for a page whose
URL matches "https://www.cia.gov/library/publications/the-world-factbook/print/[a-z]{2}.html"
This parsing is somewhat fragile, since it assumes a certain page structure. It'll work just as long as the CIA don't choose to alter
their pages.
METHODS
"new"
Creates a new WebService::CIA::Parser object. It takes no arguments.
"parse($html)"
Parses a string of HTML take from the CIA World Factbook. It takes a single string as its argument and returns a hashref of fields and
values.
The values are stripped of all HTML. "<br>" tags are replaced by newlines.
It also creates four extra fields: "URL", "URL - Print", "URL - Flag", and "URL - Map" which are the URLs of the country's Factbook
page, the printable version of that page, a GIF map of the country, and a GIF flag of the country respectively.
EXAMPLE
use WebService::CIA::Parser;
use LWP::Simple qw(get);
$html = get(
"https://www.cia.gov/library/publications/the-world-factbook/print/uk.html"
);
$parser = WebService::CIA::Parser->new;
$data = $parser->parse($html);
print $data->{"Population"};
AUTHOR
Ian Malpass (ian-cpan@indecorous.com)
COPYRIGHT
Copyright 2003-2007, Ian Malpass
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The CIA World Factbook's copyright information page (<https://www.cia.gov/library/publications/the-world-factbook/docs/contributor_copy-
right.html>) states:
The Factbook is in the public domain. Accordingly, it may be copied
freely without permission of the Central Intelligence Agency (CIA).
SEE ALSO
WebService::CIA
perl v5.8.8 2008-02-04 WebService::CIA::Parser(3pm)