Sponsored Content
Full Discussion: timeup
Top Forums Shell Programming and Scripting timeup Post 302083574 by mpang_ on Monday 7th of August 2006 04:54:14 AM
Old 08-07-2006
timeup

hey, I need to write a script which would monitor a directory for certain file existence until certain time. I got the monitoring part and I was able to make the script to monitor the directory for a duration of time (say 4 hours), but what I want is for script to monitor a directory until a specific time (i.e. 4:00 am), can anyone help? thanks!
 
TORRUS_MONITOR(8)						      torrus							 TORRUS_MONITOR(8)

NAME
monitor - Torrus Monitor. SYNOPSIS
torrus monitor --tree=TREENAME [options...] DESCRIPTION
This command starts the Monitor process for the tree TREENAME. By default it forks into a daemon, sets the log output file to /var/log/torrus/monitor.TREENAME.log, performs one monitoring cycle, and sleeps until the next cycle is scheduled. In daemon mode the log file can be reopened by sending it a SIGHUP signal. OPTIONS
--nodaemon Prevents the process from becoming a daemon and sets the log to STDERR. --runonce Instructs the script to run once and exit. Implies --nodaemon. --delay=N Makes the daemon sleep for N minutes before starting the first cycle. This would happen on the daemon startup and also after each configuration recompilation. For example, when monitor and collector start simultaneously, the collector needs some time to retrieve the data being monitored. --debug Sets the log level to debug. --verbose Sets the debug level to info. --help Displays a help message. FILES
/etc/torrus/conf/torrus-siteconfig.pl Torrus site configuration script. /var/log/torrus/monitor.TREENAME.log Monitor's log for the tree TREENAME. SEE ALSO
torrus(8) NOTES
See more documentation at Torrus home page: http://torrus.org AUTHOR
Stanislav Sinyagin <ssinyagin@yahoo.com> torrus 2.03 2013-07-26 TORRUS_MONITOR(8)
All times are GMT -4. The time now is 09:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy