[NOOB] Help with perl[PERL]

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

[NOOB] Help with perl[PERL]

Postby AJB2K3 » Sun Mar 05, 2006 3:19 pm

NOOB ALERT
Im trying to run a pel script but im getting
Code: Select all
Usage: /usr/bin/lcdmetar.pl <site_code>


What does <site_code> mean?
:oops: :oops: :oops: :oops: :oops:
AJB2K3
LXF regular
 
Posts: 175
Joined: Sat Jun 11, 2005 11:51 am

RE: [NOOB] Help with perl[PERL]

Postby MartyBartfast » Sun Mar 05, 2006 4:44 pm

It's trying to tell you that you are supposed to give the script a parameter, which it calls site_code.
I don't know what lcdmetar.pl is or does but it's saying you should invoke it something like this:

/usr/bin/lcdmetar.pl 128

or

/usr/bin/lcdmetar.pl home

You'll need to check out some documentation for the product to see what it expects you to pass it as site_code.

Edit:
A quick google has thrown up a copy of lcdmetar.pl, and site_code seems to be a code for your geographical region so it can look up your local weather. You'll need to look up the documentation to work out the correct site code for your part of the world and then pass that code as a parameter.

Another edit:
Try passing it EGLL (which is London Heathrow Airport):

/usr/bin/lcdmetar.pl EGLL

More codes can be got from here:
http://weather.noaa.gov/

Must go get the dinner on now!
User avatar
MartyBartfast
LXF regular
 
Posts: 816
Joined: Mon Aug 22, 2005 7:25 am
Location: Hants, UK


Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests