5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
These run individually, but not together.
I want to show both temp and fan speed.
watch -n 0.2 "sensors -f | grep "temp4""
watch -n 0.2 "sensors -f | grep "fan1"" (4 Replies)
Discussion started by: drew77
4 Replies
2. Shell Programming and Scripting
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
3. UNIX for Dummies Questions & Answers
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
4. Shell Programming and Scripting
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
5. UNIX for Dummies Questions & Answers
Hi, everybody
I want to know hot to watch changes on a dir, for example if someone changes a file inside it, with an script. I've tried using md5sum and then diff, sadly with no success.
I use md5sum for single files, but doesn't work for directories. The idea is take a snapshot with md5sum,... (4 Replies)
Discussion started by: piltrafa
4 Replies
LEARN ABOUT OPENSOLARIS
time
time(1T) Tcl Built-In Commands time(1T)
__________________________________________________________________________________________________________________________________________________
NAME
time - Time the execution of a script
SYNOPSIS
time script ?count?
_________________________________________________________________
DESCRIPTION
This command will call the Tcl interpreter count times to evaluate script (or once if count isn't specified). It will then return a string
of the form
503 microseconds per iteration
which indicates the average amount of time required per iteration, in microseconds. Time is measured in elapsed time, not CPU time.
EXAMPLE
Estimate how long it takes for a simple Tcl for loop to count to a thousand:
time {
for {set i 0} {$i<1000} {incr i} {
# empty body
}
}
SEE ALSO
clock(1T)
KEYWORDS
script, time
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWTcl |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for Tcl is available on http://opensolaris.org.
Tcl time(1T)