The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Passing the values to the secondary script when it invoked by primary script venu_eie UNIX for Advanced & Expert Users 2 07-03-2008 08:10 AM
Passing the values to the secondary script when it invoked by primary script venu_eie Shell Programming and Scripting 1 07-03-2008 07:16 AM
create a shell script that calls another script and and an awk script magikminox Shell Programming and Scripting 0 06-26-2008 03:50 AM
help me in sending parameters from sqlplus script to unix shell script Hara Shell Programming and Scripting 2 01-29-2008 03:31 PM
Shell Script: want to insert values in database when update script runs ring Shell Programming and Scripting 1 10-25-2007 04:06 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-27-2008
tamias tamias is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 2
script

Help me to write the script!
PHP Code:
hwmonitor

CPU Core 1
46 C
CPU Core 2
51 C
SMART Disk WDC WD7500AAKS
-00RBA0 (WD-WCAPT0503959): 58 C
SMC AMBIENT AIR
27 C
SMC CPU A HEAT SINK
43 C
SMC DRIVE BAY 1
56 C
SMC GPU 1 CHIP
54 C
SMC GPU 1 HEAT SINK
54 C
SMC GPU DIODE
57 C
SMC MEMORY CONTROLLER
48 C
SMC OPTICAL DRIVE
44 C
SMC POWER SUPPLY POSITION 1
64 C
SMC WLAN CARD
45 C 
I tried

PHP Code:
hwmonitor egrep AMBIENT | /usr/bin/awk '{print $10}' 
but there is no output.

The first part works :
PHP Code:
hwmonitor egrep AMBIENT

SMC AMBIENT AIR
27 C 

Last edited by tamias; 11-27-2008 at 04:46 AM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:33 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0