<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Bill,</p>
<p>Hmm, that's odd. It worked fine here.</p>
<p>Although it should have been /dev/sd*<br>
that construct uses a shell glob not a regex ;-)</p>
<p>Interestingly /dev/sd?? seems to behave differently on different
systems.<br>
On some it will match /dev/sda on others it won't</p>
<p><br>
</p>
<p>Update pushed to the repository.<br>
Please re-test and let me know how it goes<br>
</p>
<br>
<div class="moz-cite-prefix">On 10/05/17 20:44, Bill Kenworthy
wrote:<br>
</div>
<blockquote
cite="mid:608d6adf-3435-26fd-0e36-7f1dd809f1e9@iinet.net.au"
type="cite">
<pre wrap="">On 10/05/17 14:33, David Godfrey wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Brad,
On 09/05/17 11:05, Brad Campbell wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 09/05/17 01:12, David Godfrey wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Brad,
I've done up a pure bash (other than smartctl and sudo) version of this
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">
Line 44 in your script is "for Dev in /dev/sd?? ; do"
rattus ~ # ls -al /dev/sd??
brw-rw---- 1 root disk 8, 65 Apr 30 17:59 /dev/sde1
brw-rw---- 1 root disk 8, 66 Apr 30 17:59 /dev/sde2
brw-rw---- 1 root disk 8, 67 Apr 30 17:59 /dev/sde3
rattus ~ # ls -al /dev/sd?
brw-rw---- 1 root disk 8, 0 Apr 30 17:59 /dev/sda
brw-rw---- 1 root disk 8, 16 Apr 30 17:59 /dev/sdb
brw-rw---- 1 root disk 8, 32 Apr 30 17:59 /dev/sdc
brw-rw---- 1 root disk 8, 48 Apr 30 17:59 /dev/sdd
brw-rw---- 1 root disk 8, 64 Apr 30 17:59 /dev/sde
brw-rw---- 1 root disk 8, 80 Apr 30 17:59 /dev/sdf
brw-rw---- 1 root disk 8, 96 Apr 30 17:59 /dev/sdg
rattus ~ #
deleting one question marks lets it work - no idea why the regex is
failing! (ran it under bash on gentoo)
/dev/sde - INTEL SSDSC2BW120H6 - 0 Years 89 Days 23 Hours -
Temperature (min/max) 18/79 Celsius
/dev/sdf - ST2000VN000-1HJ164 - 0 Years 297 Days 3 Hours -
Temperature (min/max) 17/37 Celsius
/dev/sdb - WDC WD20EFRX-68EUZN0 - 1 Years 228 Days 5 Hours -
Temperature (min/max) 2/41 Celsius
/dev/sdc - WDC WD20EFRX-68EUZN0 - 2 Years 12 Days 18 Hours -
Temperature (min/max) 2/41 Celsius
/dev/sdd - WDC WD20EFRX-68EUZN0 - 2 Years 22 Days 18 Hours -
Temperature (min/max) 16/43 Celsius
/dev/sda - INTEL SSDSC2CW120A3 - 104 Years 355 Days 10 Hours
- Temperature (min/max) 30/30 Celsius
Interesting results - the worlds oldest SSD as well as two drives
getting down to 2 deg c while running ...
BillK
_______________________________________________
PLUG discussion list: <a class="moz-txt-link-abbreviated" href="mailto:plug@plug.org.au">plug@plug.org.au</a>
<a class="moz-txt-link-freetext" href="http://lists.plug.org.au/mailman/listinfo/plug">http://lists.plug.org.au/mailman/listinfo/plug</a>
Committee e-mail: <a class="moz-txt-link-abbreviated" href="mailto:committee@plug.org.au">committee@plug.org.au</a>
PLUG Membership: <a class="moz-txt-link-freetext" href="http://www.plug.org.au/membership">http://www.plug.org.au/membership</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<style>
div.sig {
border: 1px solid black;
height: auto;
float: left;
padding: 1em;
}
span.left {
width: 4em;
float: left;
}
span.pulseit {
-webkit-animation: mymove 1s infinite; /* Chrome, Safari, Opera */
animation: pulse 2s infinite;
}
@keyframes pulse { 50% {font-size: 0.9em;} }
</style>
Regards<br>
David Godfrey<br>
<br>
<div class="sig">
<br>
<span class="left"> mb:<br>
<span class="pulseit">chat:</span> </span> <span
style="float: right;"> 0437 286 200<br>
with <em>dcg_mx</em> at <a
href="http://matrix.to/#/#sbts:matrix.org">#sbts:matrix.org</a>
<p style="font-size:smaller;">Chat is via matrix.org.<br>
There are clients available for All Operating Systems and
Hardware devices.<br>
Including Linux, Android, Windows, Mac, iOS<br>
I'd recommend the multiplatform RIOT client as the best
starting point.<br>
with RIOT web the easiest on any PC </p>
</span>
</div>
</div>
</body>
</html>