Sponsored Content
Full Discussion: Watch problem
Top Forums Shell Programming and Scripting Watch problem Post 303024585 by drew77 on Thursday 11th of October 2018 04:27:44 PM
Old 10-11-2018
Watch problem

These run individually, but not together.

I want to show both temp and fan speed.

Code:
watch -n 0.2 "sensors -f | grep "temp4""
watch -n 0.2 "sensors -f | grep "fan1""

 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

watch dog problem

please help in some times "watch dog reinit memory", and system hang SCO UNIX version 3.2.5.0 Compac Proliant ML 370 pentium 3 750 512 MB memory 9g and 18g scsi u/f/w Disc 65 user running informix Thanx (1 Reply)
Discussion started by: RoMaGo
1 Replies

2. News, Links, Events and Announcements

Watch The Time !!!

watch your clock! Unix-time @ 1:58:31 UTC (2:58:31 MEZ) == 1111111111 ;-) no chance to see such a combination again... 2222222222 will be beyond our time..... http://en.wikipedia.org/wiki/Unix_time greetings PRESSY (0 Replies)
Discussion started by: pressy
0 Replies

3. Shell Programming and Scripting

Folder Watch

Hi there, I was wondering if there was a way in UNIX that I could set up a running script that monitors a certain folder (and all the folders and files contained within it) so that if any file changes then it will be the change logged within a log file. I dont know if this is possible in Unix... (6 Replies)
Discussion started by: lodey
6 Replies

4. UNIX for Dummies Questions & Answers

watch command

Hi, Please help me out! In the man pages they dont talk about any options that can be used to terminate a running 'watch' command. Do you know a way of terminating the command using an option? Thanks (1 Reply)
Discussion started by: foxtron
1 Replies

5. Shell Programming and Scripting

Using the watch command

so i have a very long script which i have to run. when i run this script, i want to monitor the the openssl commands it runs. the way ive attempted to do this is: watch -t -n 1 "(date '+TIME:%H:%M:%S' ; ps aux | egrep openssl | egrep -v grep)" 2>&1 | tee -a logfile the above command is... (2 Replies)
Discussion started by: SkySmart
2 Replies
MRTG-SENSORS(1) 					       MRTG helper utilities						   MRTG-SENSORS(1)

NAME
mrtg-sensors - Returns data from lm-sensors SYNOPSIS
mrtg-sensors [-m multiplier] chip label [chip label] DESCRIPTION
mrtg-sensors uses the lm-sensors library to query various system sensors for information such as temperature, fan speed, etc. The output is written in a form useful as input for the mrtg utility. Up to two pairs of chips and labels may be specified. The first is used for the incoming data value in mrtg, while the second is used for the outgoing data value. Of course, they need not correspond to incoming or outgoing data, that is merely what mrtg expects. "chip" is the name of the chip to query, and "label" is the label of the piece of information that should be queried from the given chip. sensors(1) can be used to look up all available chips and labels on your system. Wildcards may be used in chip names, but only the first matching chip will be queried. If you use the special name "dummy" as a chip name, nothing will be queried, and a value of zero will be sent to mrtg. -m is the multiplier to be used in the output. The default multiplier is 1. Note that you may find it more useful to use sensors.conf(5) to set global multipliers for sensors. EXAMPLES
mrtg-sensors dummy dummy adm9240-* fan2 Get the speed of fan #2 from the adm9240 chip. mrtg-sensors -m 0.5 adm9240-* fan1 adm9240-* fan2 Get the speeds of both fan #1 and fan #2, halfing both. mrtg-sensors -m 2 dummy dummy adm9240-* temp Get the cpu termerature, and double it. SEE ALSO
sensors(1) sensors.conf(5) AUTHOR
mrtg-sensors was written by Joey 'no pseudo-code' Hess <joeyh@debian.org>. mrtgutils 0.1 2001-03-04 MRTG-SENSORS(1)
All times are GMT -4. The time now is 11:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy