Re: ver_linux script

From: Tim Coleman (tim@beastor.mine.nu)
Date: Mon Mar 13 2000 - 16:48:08 EST


On Mon, Mar 13, 2000 at 08:45:42PM +0000, Riley Williams wrote:
Hi Riley

> > I don't know about this, but if it's true then you're right,
> > using /bin/ls might be the Wrong Thing[tm] to do.
>
> That's what the comment at the top of the original version
> indicates as being the reason for the path specified therein, and
> notes that if a different path is used on that systemn, then the
> path in question should be echoed there.

I can live with that reasoning :)

> I've just checked, and it doesn't work for me either now, yet
> it's the one I developed when RedHat 5.2 was current, and it
> clearly worked then. Yours truly is clearly puzzled as to what
> is going on there !!!

I don't know what the issue there is either. Maybe bash's
behaviour has changed since then.

> I have now developed one that actually works, but it does so by
> changing the mode of the ver_linux script to 755 rather than the
> 644 that it comes with, then just running it. I know my original
> version avoided that and worked, but I've no idea why the one I
> have stored as being the version in question doesn't...

Hmph. Dunno.

> > Well, /proc/version provides most of the same information
> > that uname -a provides. The only things missing are the
> > machine type and processor type.
>
> I must have been asleep when I made that comment, sorry...
> Please ignore it.

Unless the processor information is actually important. I think
we might not want to omit that from the information.

If that's the case we can do a "uname -mp" as well as
"cat /proc/version"

> >> It could also prevent the script from producing the
> >> correct answers in some cases, so I would suggest
> >> basing a replacement on the application of the above
> >> diff to the original version.
>
> > It would?
>
> It COULD - not WOULD - although in that case, I wouldn't expect
> it to. That's the direct implication of the comment at the start
> of the current version.

Oops. I misread your comment.

> [patch]

I think your patch looks pretty good to me. Not that I'm
a Certified Kernel Hacker or anything :)

If there is a need for the processor/machine information from
uname, we can add uname -mp after the cat /proc/version as
I mentioned above.

Of course, if we wanted lots of detail we could cat /proc/cpuinfo :)

Tim

-- 
------------------------------------------------------------------------
Tim Coleman <tim@beastor.mine.nu>
Software Developer/Systems Administrator/RDBMS Specialist/Linux Advocate
University of Waterloo Honours Co-op Combinatorics & Optimization
"Go to Heaven for the climate, Hell for the company." -- Mark Twain


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:25 EST