CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Run prefix for script

 



Efficent
New User

Jul 27, 2017, 12:50 AM

Post #1 of 2 (1045 views)
Run prefix for script Can't Post

Hello,

I have a script what converts .netxml and .gpsxl into a kml file.
( https://github.com/exp/Kismet-to-KML/blob/master/README )

But when i run the script: perl kismet2kml.pl it says that i must prefix .netxml and .gpsxml. Can someone explaine to me what prefix is and what i must do in this situation?


Laurent_R
Veteran / Moderator

Jul 27, 2017, 2:38 AM

Post #2 of 2 (1031 views)
Re: [Efficent] Run prefix for script [In reply to] Can't Post

I have no idea what this is all about, but looking at the code, I can see that you have this line:

Code
my $prefix = $ARGV[0] or die "Please specify a prefix for gps and xml files";

This means that you need to supply a "prefix" as a command line argument when you launch the program. A "prefix" is presumably the name of the gps and xml files without the extension.

So you should probably run the program as follows:

Code
perl kismet2kml.pl file_name

when "file_name is the name of your files without the ".gps" or ".xml" extensions.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives