HI All,
Suddenly don't know what happened to redhat linux 7.2 any program start then itsn't listing while using ps -ef
ex: ./xyz this xyz program pid not showing in ps-ef
Pls let me know what is the reason for the same.
Thanks a lot in advance
Bache (7 Replies)
Hi,
I have a shell scripting. This will take 7 digit number in each line and add 7 digit number with next subsequent lines ( normal addition ).
Eg:
0000001
0000220
0001235
0000022
0000023
...........
.........
........
Like this i am having around 1500000 records. After adding... (23 Replies)
Hi all,
I am very new to shell scripting.I have the requirement like
one program is there, if it is running leave like that only and if it is stopped it has to be restart and once again keep watching and it is stopped we a have to restart once agian.I want a shell script for this.Please help me... (10 Replies)
In LINUX(CentOS, RedHat) is there a way to have the banner statement appear before the logon instead of after the logon? In UNIX and Windows the banner appears before a person actually logs on, what I'm seeing in LINUX is that it appears after the login(ftp, telnet, SSH).
Thanks (0 Replies)
hi ,
I have a Solaris server which is part of a domain. The IP for this Solaris box is allocated dyanamically by a DHCP. Everytime the solaris box is restarted the IP gets changed. Being an admin what should i do to find the new ip of the Solaris server sitting at my location? Till now i get... (2 Replies)
I want to copy large amount of files aproximately more than 20,000 files from one file system to another file system, but it gives me error like:
#cd /opt/appserver/images
#cp * /opt/appserver02/public/images
Argument list is too long
Also above mention error appear again when i run:
... (1 Reply)
Hello everyone, I'm in need of some assistance. I'm currently enrolled in an introductory UNIX shell programming course and, well halfway through the semester, we are receiving our first actual assignment. I've somewhat realized now that I've fallen behind, and I'm working to get caught up, but for... (1 Reply)
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Hi,
when i am trying below script
assume that below values are taken in code
#!/bin/ksh
if
then
echo usage: aNlist.sh QMGR NAME MQREQ
fi
NL=`echo 'dis qmgr'|runmqsc $1|grep REPOSNL|sed 's/.*REPOSNL\(.*\).*/\1/' |cut -d'(' -f2|cut -d')' -f1`
echo 'define nl('$NL_$2')... (25 Replies)
Hi All,
I have a small queries to get the character count
i tried with wc -c and wc -m but its not returend current result
For eg:
wc -c
wc -m
echo "Name" | wc -c
result: 5 but actually it should returned 4
Help me on this to ge the correct one.
Thanks!
----------... (4 Replies)
Discussion started by: siva.pitchai
4 Replies
LEARN ABOUT DEBIAN
weather::com::simple
Weather::Com::Simple(3pm) User Contributed Perl Documentation Weather::Com::Simple(3pm)NAME
Weather::Com::Simple - Simple Wrapper around the Weather::Com::Cached API
SYNOPSIS
use Data::Dumper;
use Weather::Com::Simple;
# define parameters for weather search
my %params = (
'partner_id' => 'somepartnerid',
'license' => '12345678',
'place' => 'Heidelberg',
);
# instantiate a new weather.com object
my $simple_weather = Weather::Com::Simple->new(%params);
my $weather = $simple_weather->get_weather();
print Dumper($weather);
DESCRIPTION
Weather::Com::Simple is a very high level wrapper around Weather::Com::Cached. You provide a place to search for (e.g. a city or "city,
country") and you'll get back a simple hash containing some usefull weather information about all locations whose name matches to the
search string.
CONSTRUCTOR
new(hash or hashref)
The constructor takes the same hash or hashref as Weather::Com::Cached does. Please refer to that documentation for further details.
Except from the Weather::Com::Cached parameters this constructor takes a parameter place which defines the location to search for. It is
not possible to provide the location to search to the get_weather() method!
METHODS
get_weather()
This method invokes the Weather::Com::Cached API to fetch some weather information and returns an arrayref containing one or many hashrefs
with some high level weather information.
If no location matching the search string is found, it returns undef.
When you construct a Weather::Com::Simple object like shown in the synopsis above, the arrayref returned has the following structure:
$VAR1 = [
{
'place' => 'Heidelberg, Germany',
'celsius' => '0',
'fahrenheit' => '32',
'temperature_celsius' => '0',
'temperature_fahrenheit' => '32'
'windchill_celsius' => '-6',
'windchill_fahrenheit' => '21',
'windspeed_kmh' => '26',
'windspeed_mph' => '16',
'wind' => '16 mph 26 km/h from the North Northeast',
'updated' => '11:50 AM Local on January 26, 2005',
'conditions' => 'Partly Cloudy',
'pressure' => '30.21 in / 1023.0 hPa',
'humidity' => '60',
},
{
'place' => 'Heidelberg, KY',
...
},
{
'place' => 'Heidelberg, MS',
...
}
];
SEE ALSO
See also documentation of Weather::Com and Weather::Com::Cached.
AUTHOR
Thomas Schnuecker, <thomas@schnuecker.de>
COPYRIGHT AND LICENSE
Copyright (C) 2004-2007 by Thomas Schnuecker
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The data provided by weather.com and made accessible by this OO interface can be used for free under special terms. Please have a look at
the application programming guide of weather.com (http://www.weather.com/services/xmloap.html)
perl v5.8.8 2007-07-09 Weather::Com::Simple(3pm)