![]() |
HDDTemp : Script Assistance
Hi all,
I have built a very basic script to show me my HDD temperatures, and was wondering if it would be possible to have the HDD label displayed with the relevant device? This is what I have at the moment: Code:
#!/bin/shAnd this is what it displays: Quote:
What I would like to do now is to add a label to each corresponding drive, so that it is easier to remember what each temp refers to ... This following code doesn't work, this is only an example of what I am trying to do; but maybe someone could give me some pointers please: Code:
#!/bin/shWhat I am aiming at as a final product would be something displayed like this: Quote:
Thanks very much in advance for any assistance. Cheers |
Will this work?
Quote:
|
Hi ~sHyLoCk~
This is what I used: Code:
And this is what it outputs: Quote:
This is great, Thank you very much for your assistance :) Cheers |
Well i wrote that in a hurry, to shorten it you can use this instead:
Code:
echo ISOs: [hda] : $(sudo /usr/sbin/hddtemp /dev/hda | grep /dev | cut -d":" -f3)Quote:
|
Oribit, just an additional thought. I use a shell alias to display the temps of my HDs when using the command line, but I don't need the additional information like you. I use Conky to display the temps on my X desktop.
|
Hi,
Orbit, just a few links to aid you in the future. The ABS is great; SlackwareŽ Essentials SlackwareŽ Basics Linux Documentation Project Rute Tutorial & Exposition Linux Command Guide Utimate Linux Newbie Guide LinuxSelfHelp Getting Started with Linux Advanced Bash-Scripting Guide Virtualiation- Top 10 :hattip: These links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links! |
| All times are GMT -5. The time now is 08:38 AM. |