Replacing laptop cpu
g
geleem at bellsouth.net
Wed May 27 03:01:10 UTC 2015
*WOW*
my bad. :-\
hard to believe error slide thru. ((GBWG))
see notation in script.
On 05/25/2015 03:17 PM, g wrote:
<<>>
> forget that script. i thought i would expand script with a time stamp
> so you can better relate to when things change.
>
> =+=+=+=
>
> #!/bin/sh
> # fn = log-sensors v. 2 r. 01
> # date = 2015-0525-1330
> # author = g e leem - copyleftist g e leem, gnu gpl applies.
> # path = /home/users/scripts/
> ##
> # usage: build a log of sensor readings at 10 minute intervals
> # add a time stamp every hour
> ##
> # notes: sleep 600 = 10 minutes delay
> #
> # chk-sensors = 6 starts with value of 6 to
> # count down sleep periods of 10 minutes in
> # first loop
> #
> # chk-sensors = 7 so that time stamp with have
> # correct value for next loop
> #
> # start logging from a terminal with command
> # log-sensors&
> # to run in background and free terminal
>
> chksensors=6
>
> while true ; do
>
> sensors >> ~/00-check-sensors
>
> sleep 600 ## set sleep period to an interval of your choice.
>
> if $chksensors = 0 ; then
>
> date >> ~/00-check-sensors
>
> chksensors=7
>
> fi
>
> chksensors=$chksensors - 1
*note*
above line is incorrect. should be;
chksensors=$chksensors-1
> done
>
> =+=+=+=
>
> now, if you are aware of time you are doing whatever, you will be
> able to relate to when.
>
> i have been running script to see how it is tracking and i see
> changing in cpu and board temps and fans speeds. nothing drastic,
> but interesting to see. :-)
when i returned inside from yard work, it was a while before i
got around to see what script had built in file.
after reading, i got busy with a few other things.
a few minutes ago when i finally got around to bring up window with
terminal i started script in, i got hit with;
]$ /home/geo/scripts/log-sensors: line 39: -: command not found
did not take me long to realize spaces are ok when used for testing
condition with " = ", but not with " - " and " + " changing value.
my apologies. [i blame it on chemo brain]
and i admit, i would have felt worse if someone else had informed
me of my err. ;-)
--
peace out.
If Bill Gates got a dime for every time Windows crashes...
...oh, wait. He does. THAT explains it!
in a world with out fences, who needs gates.
CentOS GNU/Linux 6.6
tc,hago.
g
.
More information about the users
mailing list