Sponsored Content
Full Discussion: Watch problem
Top Forums Shell Programming and Scripting Watch problem Post 303024587 by drew77 on Thursday 11th of October 2018 04:40:39 PM
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

 

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
INOTIFY_RM_WATCH(2)					     Linux Programmer's Manual					       INOTIFY_RM_WATCH(2)

NAME
inotify_rm_watch - remove an existing watch from an inotify instance SYNOPSIS
#include <sys/inotify.h> int inotify_rm_watch(int fd, int wd); DESCRIPTION
inotify_rm_watch() removes the watch associated with the watch descriptor wd from the inotify instance associated with the file descriptor fd. Removing a watch causes an IN_IGNORED event to be generated for this watch descriptor. (See inotify(7).) RETURN VALUE
On success, inotify_rm_watch() returns zero, or -1 if an error occurred (in which case, errno is set appropriately). ERRORS
EBADF fd is not a valid file descriptor. EINVAL The watch descriptor wd is not valid; or fd is not an inotify file descriptor. VERSIONS
Inotify was merged into the 2.6.13 Linux kernel. CONFORMING TO
This system call is Linux-specific. SEE ALSO
inotify_add_watch(2), inotify_init(2), inotify(7) COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2010-10-15 INOTIFY_RM_WATCH(2)
All times are GMT -4. The time now is 07:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy