Jump to content



Photo

Application: Linux System Script


  • Please log in to reply
70 replies to this topic

#61 Max Norris

Max Norris

    Neowinian Senior

  • Tech Issues Solved: 15
  • Joined: 20-February 11
  • OS: Windows 8.1, BSD Unix
  • Phone: HTC One (Home) Lumia 1020 (Work)

Posted 07 January 2013 - 15:18

ok so what does this give you

cat /proc/cpuinfo | grep 'model name


[maxnorris@vm12 ~]$ cat /proc/cpuinfo | grep 'model name'
model name	  : Intel(R) Core(TM)2 Duo CPU	 E8400  @ 3.00GHz
model name	  : Intel(R) Core(TM)2 Duo CPU	 E8400  @ 3.00GHz



#62 keuka

keuka

    Neowinian

  • Joined: 23-August 05
  • Location: United States of America

Posted 31 January 2013 - 04:03

Any chance of making this Apple / Mac OS X friendly? Apple logo and such?

#63 +Karl L.

Karl L.

    xorangekiller

  • Tech Issues Solved: 15
  • Joined: 24-January 09
  • Location: Virginia, USA
  • OS: Debian Testing

Posted 31 January 2013 - 04:34

Despite the fact that OS X and GNU/Linux are both UNIX-ey, most of the stuff that Haggis implemented in the script are actually Linux specific. For example, OS X has no /proc/cpuinfo or lsb_release (Linux Standard Base release information).

Also, the script is implemented in BASH. While virtually every modern Linux distribution has BASH 4.0 or greater, OS X is stuck on the ancient BASH 3, which doesn't have many of the BASHisms modern scripts rely on. (For example, I have BASH 4.2 on Debian 7, but even Debian 6 has 4.1.)

That said, I didn't write the script; Haggis did. Its up to him whether he wants to support it. Although, if you patched it to work on OS X and submitted the diff, he would probably be willing to accept it.

#64 keuka

keuka

    Neowinian

  • Joined: 23-August 05
  • Location: United States of America

Posted 31 January 2013 - 05:19

Aren't there Mac OS X alternatives to accomplish the same tasks perhaps an alternative script as a port or something is in order; something could use "awk", "grep", and "tail" and such against "uname" and such to aquire info? Or against "system_profiler | more"

#65 keuka

keuka

    Neowinian

  • Joined: 23-August 05
  • Location: United States of America

Posted 31 January 2013 - 05:31

By the way...

Ryans-MacBook-Air:~ ryan$ uname -a
Darwin Ryans-MacBook-Air.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Ryans-MacBook-Air:~ ryan$ bash -version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)
Copyright (C) 2007 Free Software Foundation, Inc.
Ryans-MacBook-Air:~ ryan$


#66 +Yorak

Yorak

    Insubordinate

  • Joined: 06-February 05
  • Location: Virginia

Posted 31 January 2013 - 07:49

Hey man, forgot to test this earlier but it seems to work well. Nice job. Great script. :)

Posted Image

#67 OP Haggis

Haggis

    Neowinian Senior

  • Tech Issues Solved: 10
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 31 January 2013 - 10:27

Glad you like it

As per above only issue i have with making it work on MAC etc is i have no way of testing it

Still working on making it better and more sleek too

#68 vetthe evn show

the evn show

    Removed

  • Joined: 10-June 02

Posted 02 February 2013 - 21:36

Removed

#69 Class

Class

    Neowinian

  • Joined: 01-August 05
  • Location: Hungary

Posted 14 October 2013 - 10:45

Hey man, forgot to test this earlier but it seems to work well. Nice job. Great script. :)

pmNlQA6l.jpg

 

What script is that you were running here? Is the 1st terminal an Arch linux thing, or script? (Or is that Haggis Script?)



#70 +Yorak

Yorak

    Insubordinate

  • Joined: 06-February 05
  • Location: Virginia

Posted 14 October 2013 - 15:32

What script is that you were running here? Is the 1st terminal an Arch linux thing, or script? (Or is that Haggis Script?)

I am fairly sure it is glances.



#71 OP Haggis

Haggis

    Neowinian Senior

  • Tech Issues Solved: 10
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 15 October 2013 - 09:14

I am fairly sure it is glances.


The one on the right is version 1of my stats script