← Back to team overview

sslug-teknik team mailing list archive

SV: SV: SV: Mærkelig proces der sluger 30% af CPU

 

hvordan kan man have for meget tid?

> -----Oprindelig meddelelse-----
> Fra:	Admin PwC Cambodia [SMTP:octa@xxxxxxxxxxxxxx]
> Sendt:	16. maj 2001 13:02
> Til:	sslug-teknik@xxxxxxxx
> Emne:	RE: SV: SV: [TEKNIK] Mærkelig proces der sluger   30% af CPU
> 
> I har for meget tid !
> 
> JoW
> 
> > #!/bin/bash
> > if [ ` uname -a | awk ' { print $11 } ' ` = i686 ]
> > then
> >   echo 'SKOD!!'
> > else
> >   echo 'ohh undskyld jeg vidste ikke du var cool'
> > fi
> 
> Jeg har en i586 - så den er cool?
> 
> Dit script er ikke så skide smart. Det her er da meget nemmere;
> 
> #!/bin/bash
> if [  ` uname -m ` = i686 ]
> then
>    echo 'SKOD!!'
> else
>    echo 'ohh undskyld jeg vidste ikke du var cool'
> fi
> 
> 
> Og, det var jo intel du var efter, så noget i den her stil er mere
> korrekt;
> 
> #!/bin/bash
> if [  ` grep vendor /proc/cpuinfo | awk '{print $3}' ` = GenuineIntel ]
> then
>    echo 'SKOD!!'
> else
>    echo 'ohh undskyld jeg vidste ikke du var cool'
> fi
> 
> Mads
> 
> --
> Mads Bondo Dydensborg.                               madsdyd@xxxxxxxxxxxx
> Imagine a federal law making it illegal for anyone (including Consumer
> Reports) to purposefully cause an automobile collision. While this may be
> a
> well-intentioned attempt to stop road-rage, it also bans automobile
> crash-testing, ultimately leading to unsafe vehicles and the inability to
> learn how to make vehicles safe in general. The situation with the DMCA is
> analogous.
>                                - Princton FAQ about the SDMI challenge