SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

** NOTE **
Gnapster no longer depends on LWP, so it should run fine for everybody now assuming that you're not running it from behind a proxy.

Also, the newer version of gnapster include a feature to retrieve the servers automatically when you go into browse opennap servers; however, gnapfetch seems to return quite a few more servers than this feature does. In addition, gnapfetch allows you to sort on ping times, users, # of songs, or gigs of data.

** Description **

This program is about as simple as they come. Just run ./gnapfetch, and it'll print the servers in gnapster format or ./gnapfetch -t for TekNap format. If you're using gnapster version 1.3.10 or higher, make sure that you use the -f option. gnapfetch -h gives a list of all of the options(sorting, writing to a file etc...). You'll figure it out :-). As for installation mv gnapfetch /usr/local/bin/ should work nicely. The program works by connecting to the napigator server and parsing the output of their server list. It then writes the results to stdout which should be redirected like so

if you're using gnapster < 1.3.10:

gnapfetch > /home/your_username/.gnapster/servers or gnapfetch -o /home/your_username/.gnapster/servers

if you're using gnapster >= 1.3.10:

gnapfetch -o /home/your_username/.gnapster/servers2 -f

if you're using TekNap:

gnapfetch -n your_nick -p your_pass -t > /home/your_username/.teknaprc

note: the -n and -p flags are optional. -h or --help displays usage of the program.

After running it, you should have a much longer/better list of opennap servers than before. You have to run it often to keep the list up to date, so if you're a regular user of gnapster/TekNap, you may want to consider a crontab. Please send questions/comments to <whitton@atlantic.net>. Also, an exclude feature has been added. If you don't want any particular server to show up in the list modify the my $exclude = qr/WhateverYouWant|SomeServer/; line to reflect the exclusions that you're interested in.

Thanks

Decklin Foster <fosterd@hartwick.edu>
for adding the exclude feature and reporting a stupid oversight on my part involving precedence in an open statement in version 0.1.

German Gutierrez <german@dd.com.ar>
for adding socket support so that gnapfetch no longer depends on LWP.

Frido Ferdinand <frido@euronet.nl>
for adding sorting, getopts, pinging, outfile selection and the verbosity option.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.