[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] How to find version of Leafnode
On Sun, 27 Feb 2000, Joerg Dietrich wrote:
> On Sun, Feb 27, 2000 at 05:00:39AM +0000, phil hunt wrote:
> > Is there currently a good way in Leafnode to find what version
> > it is? (I am thinking of getting Leafwa to report which Leafnode
> > version it is working with).
>
> No.
>
> > The best way I can think of currently is to run httpd, catch the
> ^^^^^
> Thought too much about apache and PHP?
I must have!
> > Is there a better way to do it? Alternately, shall I send in a patch
>
> strings /usr/local/sbin/leafnode | grep [1-9][.][0-9] | grep -v [A-Z]
> works here but who knows what kind of garbage string finds elsewhere?
Ugh! That's almost as bad as my method.
> > so that `nntpd --version` prints version information then exists?
>
> Yes, IMO. But getopt_long(3) is a GNU extension and may not be available
> everywhere.
Bummer. Perhaps I could use something like:
for (i = 1; i < argc; i++){
if (strcmp(argv[i], "--version") == 0){
print_version_info();
exit(0);
}
}//for
Since if '--version' is present, the program shouldn't do anything apart
from outputing the version info.
> I wish the world were a happy place (leafnode.h).
>
> Regards,
> Jo:rg
>
> --
> Fortune cookie of the day:
> Disclaimer: "These opinions are my own, though for a small fee they be
> yours too."
> -- Dave Haynie
>
> --
> leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
> To unsubscribe, send mail with "unsubscribe" in the subject to the list
>
--
***** Phil Hunt ***** send email to phil@xxxxxxxxxx *****
Moore's Law: hardware speed doubles every 18 months
Gates' Law: software speed halves every 18 months
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list