[NOOB] Help with perl[PERL]

Code junkies hangout here

Moderators: ChriThor, LXF moderators

[NOOB] Help with perl[PERL]

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

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:
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


/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.

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:

Must go get the dinner on now!
LXF regular
Posts: 842
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 2 guests