On Sb, 25 mai 13, 14:21:29, Vladimir Budnev wrote:
> Goodday everyone!
> 
> While trying some opensource utility I'v found that one of launching
> scripts uses uname -i | grep x86_64 to check for 64/32 bit platform and
> futher processing.
> 
> But on my desktop it gives "unknown", so script does not work as expected.
> And at the same time:
> steve@dbsteve: /home/coin %
> % uname -a
> Linux dbsteve 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64 GNU/Linux
> 
> Does it mean one cant rely on uname -i results or my distro (debian
> testing) behaves strange?

Depending on what you need the information for you might want to 
consider using 'dpkg --print-architecture' instead:

amp@sid:~$ uname -i
unknown
amp@sid:~$ uname -m
x86_64
amp@sid:~$ dpkg --print-architecture
i386
amp@sid:~$ uname -a
Linux sid 3.8-2-amd64 #1 SMP Debian 3.8.13-1 x86_64 GNU/Linux

As you can see, I'm running the -amd64 kernel with i386 userland. If the
script is trying to guess whether to launch a 32 bit or a 64 bit binary, 
'uname -i' would be useless and 'uname -m' would be wrong.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Attachment: signature.asc
Description: Digital signature

Reply via email to