Re: Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

2010-03-17 Thread Martin McCormick
Chris Rees writes: sysctl hw.machine_arch It and uname -m work beautifully. Thanks to all. One thing I discovered while trying this command out on various systems is that if the system was originally built using i386 code, it reports as i386 even though there is a 64-bit platform

Re: Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

2010-03-17 Thread Lowell Gilbert
Martin McCormick mar...@dc.cis.okstate.edu writes: One thing I discovered while trying this command out on various systems is that if the system was originally built using i386 code, it reports as i386 even though there is a 64-bit platform struggling to get out. That sounds correct to

Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

2010-03-16 Thread Martin McCormick
Is there a FreeBSD command similar to the Linux arch command? I have built a fairly decent Bourne shell script to run just after installing mfsbsd on a target system. It figures out the likely boot drive, formats it and then begins to build a FreeBSD system on it. The script could

Re: Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

2010-03-16 Thread Chuck Swiger
On Mar 16, 2010, at 10:02 AM, Martin McCormick wrote: Is there a FreeBSD command similar to the Linux arch command? POSIX provides `uname -m`...? You should get either i386 or amd64, depending on whether the system is running that architecture. Regards, -- -Chuck

Re: Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

2010-03-16 Thread Matthias Fechner
Hi, Am 16.03.2010 18:02, schrieb Martin McCormick: Is there a FreeBSD command similar to the Linux arch command? have you tried: uname -p Bye Matthias -- Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe

Re: Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

2010-03-16 Thread Matthew Seaman
On 16/03/2010 17:02:47, Martin McCormick wrote: Is there a FreeBSD command similar to the Linux arch command? I have built a fairly decent Bourne shell script to run just after installing mfsbsd on a target system. It figures out the likely boot drive, formats it and then begins

Re: Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

2010-03-16 Thread Chris Rees
On 16 March 2010 17:02, Martin McCormick mar...@dc.cis.okstate.edu wrote:        Is there a FreeBSD command similar to the Linux arch command?        I have built a fairly decent Bourne shell script to run just after installing mfsbsd on a target system. It figures out the likely boot drive,

Re: Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

2010-03-16 Thread Rolf Nielsen
On 2010-03-16 18:02, Martin McCormick wrote: Is there a FreeBSD command similar to the Linux arch command? I have built a fairly decent Bourne shell script to run just after installing mfsbsd on a target system. It figures out the likely boot drive, formats it and then begins to

Re: Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

2010-03-16 Thread Eitan Adler
       I have built a fairly decent Bourne shell script to run just after installing mfsbsd on a target system. It figures out the likely boot drive, formats it and then begins to build a FreeBSD system on it. The script could intelligently ask for the 64-bit or 32-bit trees if it could