[Scottish] shell scripts

graeme graeme at graemechambers.co.uk
Wed Feb 4 13:00:14 GMT 2004


You could use the output of the uname command with a suitable flag :-

e.g.

# uname -m
  i686

You'dneed to check on each platform that you get distinguishable
results.

Hope that helps

Graeme

On Wed, 2004-02-04 at 12:33, Huard, Elise - D C&W Consultant wrote:
> Hi,
> 
> Do any of you know if there are ways in a shell script (be it bash or ksh)
> to select on architecture ?
> Like : if i'm on this type of machine than i use this bit, otherwise i do
> that ?
> Thank you,
> 
> Elise





More information about the Scottish mailing list