Then maybe you have a shell that behaves like ksh. Here is a test...
The problem is that ksh has cached the meaning of ~testgut. I don't know a gentle way to make it refresh. So I do this...
The "exec ksh" gives me a freshly started copy of ksh.
Also, any program can do what ksh did. You may be using some other program that has a private cache. There may be some way built in to handle a refresh. Or maybe you need to restart it entirely as I did with ksh.
hi,
how do i remove the cache from squid automatically every day?/
ie., from /var/spool/squid/ all the directories which has been cached here and restart ONLY squid without rebooting the system, including the swap.state files
thanx in advance
cheers (1 Reply)
I have access to 15+ UNIX boxes at work, and I do not consistently log onto all of them over time. When I do try to access one I havent been on in awhile, my account is locked as the password has expired.
I need to request to the UNIX SA's that the password expiration is 90 days and that if it... (1 Reply)
Hi ,
I am faceing lot of problem due to "disk space is not enough".
senerio is like as,
In system has 5 account.
a,b,c,d,e
say account c if very critical.
Due to other user's data, user 'c' is faceing disk space issue.
I want to dedicate 3 GB for user 'c'.
No user... (1 Reply)
hi
When I search a file with find, the subsequent search process takes relatively less time.
Is it cached somewhere in RAM altough the process died? (3 Replies)
We had a mapping to one UNIX box just fine, the server was changed to another UNIX box and now when mapping drives from Windows box to new UNIX box, we get the old GID associated with our Windows user. When checking on new UNIX box, we see GID of 108, which is what we want, but when we map the... (0 Replies)
I have made password less connection to my remote account. and i tried to execute commands at a time. but i am unable to execute the commands.
ssh $ACCOUNT_DETAILS@$HOST_DETAILS
cd ~/JEE/*/logs/ (1 Reply)
Hello,
Does anyone know what happens to your skype account if you close the outlook.com email account which are linked together? As you know they are both owned by Microsoft.
Thanks (0 Replies)
Discussion started by: milhan
0 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)