Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[NOOB] Help with perl[PERL]

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
AJB2K3
LXF regular


Joined: Sat Jun 11, 2005 12:51 pm
Posts: 175

PostPosted: Sun Mar 05, 2006 3:19 pm    Post subject: [NOOB] Help with perl[PERL] Reply with quote

NOOB ALERT
Im trying to run a pel script but im getting
Code:

Usage: /usr/bin/lcdmetar.pl <site_code>


What does <site_code> mean?
Embarassed Embarassed Embarassed Embarassed Embarassed
Back to top
View user's profile Send private message
MartyBartfast
LXF regular


Joined: Mon Aug 22, 2005 8:25 am
Posts: 804
Location: Hants, UK

PostPosted: Sun Mar 05, 2006 4:44 pm    Post subject: RE: [NOOB] Help with perl[PERL] Reply with quote

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!
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast