sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #36996
Re: SV: SV: Mærkelig proces der sluger 30% af CPU
On Tue, 15 May 2001, Andreas Overgaard wrote:
> #!/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
Follow ups
References