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 NETBSD
timelocal
OFFTIME(3) BSD Library Functions Manual OFFTIME(3)
NAME
offtime, timeoff, timegm, timelocal -- convert date and time
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <time.h>
struct tm *
offtime(const time_t * clock, long int offset);
struct tm *
offtime_r(const time_t * clock, long int offset, struct tm *ret);
time_t
timeoff(struct tm * tm, long int offset);
time_t
timegm(struct tm * tm);
time_t
timelocal(struct tm * tm);
DESCRIPTION
These functions are inspired by C standard interfaces named similarly.
offtime() converts the calendar time clock, offset by offset seconds, into broken-down time, expressed as Coordinated Universal Time (UTC).
offtime_r() is similar to offtime() but it places the returned struct tm * in the user supplied ret argument.
timeoff() converts the broken-down time tm, expressed as UTC, offset by offset seconds, into a calendar time value.
timegm() converts the broken-down time tm into a calendar time value, effectively being the inverse of gmtime(3). It is equivalent to the C
standard function mktime(3) operating in UTC.
timelocal() converts the broken down time tm, expressed as local time, into a calendar time value. It is equivalent to the C standard func-
tion mktime(3), and is provided for symmetry only.
SEE ALSO
ctime(3), tm(3), tzset(3)
BSD
April 14, 2011 BSD