Watch problem


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Watch problem
# 1  
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""

# 2  
Old 10-11-2018
Please use code tags for code.
Code:
watch -n 0.2 "sensors -f | egrep "temp4|fan1"

This User Gave Thanks to Corona688 For This Post:
# 3  
Old 10-11-2018
Code:
andy@7_~/Downloads$ watch -n 0.2 "sensors -f | egrep "temp4|fan1"
>

Code:
./Watch_Command.sh: line 9: unexpected EOF while looking for matching `"'
./Watch_Command.sh: line 10: syntax error: unexpected end of file

# 4  
Old 10-11-2018
Code:
 watch -n 0.2 "sensors -f | egrep 'temp4|fan1'"

This User Gave Thanks to vgersh99 For This Post:
# 5  
Old 10-11-2018
Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. 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

2. 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

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. 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

5. 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
Login or Register to Ask a Question