04-21-2010
not so much a matter of best practices, as it's really more situational in nature...
What's the most reliable option under the circumstances? Is there a stored procedure that would be creating the spool file that drives this setting? Couldn't this SP just go ahead and initiate whatever it is that the "watcher" script is processing? Is there a need to keep it functioning even if there's a DB outage? Could the "watcher" script just do a quick look-up on the DB to capture the state as a ${variable:-default}? Do you mind having to manage the framework required to keep a file watcher in sync with the DB, and vice versa?
It's up to your scenario and most of this is purely academic, because the real best practice here is what works most effectively under your environment.
Hope this helps. Best of luck...!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
gang,
I have a need for a utility that will 'watch' a directory and when a file pops into it, it will run a script on the file. More specifically, it will pgp decrypt the file that pops into the directory.
Our Security guys aren't comfortable with the 'normal' users on our system being able... (1 Reply)
Discussion started by: hedrict
1 Replies
2. Shell Programming and Scripting
Hi Every One
I have a Compilation Script name scomp which takes the Program name as the command line argument
I have around 10000 Programs to compile while each program takes around 10 mins to compile
i have written a Mass Compile script Scripts which takes the list of programs as input... (15 Replies)
Discussion started by: pbsrinivas
15 Replies
3. Shell Programming and Scripting
Hi All,
i dont have any idea about perl scripting...
i need some suggestion so that i can put my effort to find out the solution:D
let me explain....one of my tedious task which will taken care by Unix shell script which i prepared.
its a kind of routine work that i am running the... (4 Replies)
Discussion started by: Shahul
4 Replies
4. HP-UX
Hi,
I'm seeing the error vmunix: file: table is full in syslog.log.
Although changing the value of the kernel parameter nfile would make this error go away, how would I identify which process/application in the server is triggering this error? The server is a HP-UX B.11.11.
Thanks in advance! (1 Reply)
Discussion started by: enchogas
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have very little knowledge with unix and pmcmd. I need help with a issue.
I have to see whether a file has been dropped in a particular location/path. If the file dropped I have to check the last modified time, which should be greater than 8pmEST the prior day. If the file has been... (4 Replies)
Discussion started by: redwolves
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have scheduled a job previously and was running fine,but due to some issue i have commented it.Now the issue was solved and i have scheduled as below in crontab.
30 2 * * * /u01/srcdata/CSA/holding/common/script/QPLR_RegValrao.sh PROD
Cron is running,but my job is not triggering.
... (1 Reply)
Discussion started by: mvennakula
1 Replies
7. Solaris
I am scheduling job using Datastage tool, which tool is installed on solaris server.
I can able to schedule jobs/sequences, its not trigering at specified scheduling trigerring time.
but at specified job not starting automatically. Till that specified schedule time, i can able to see that the job... (6 Replies)
Discussion started by: sridhardwh
6 Replies
8. Shell Programming and Scripting
Hi,
I have scheduled a job using cron but the job is not getting triggred because of the following error.
line 5: /env/env_setup.sh: No such file or directory
But the file env_setup.sh is there in that location.
/scripts/env
-rwxrwxrwx 1 mysql mysql 974 Oct 24 10:41 env_setup.sh... (5 Replies)
Discussion started by: arijitsaha
5 Replies
9. Shell Programming and Scripting
Hi Folks -
I am building a process to kill a list of services. Sometimes, there's a service that hangs therefore I need to add an additionla peice of code to kill all instances of a service if it exists.
Here is that portion of code:
echo... (10 Replies)
Discussion started by: SIMMS7400
10 Replies
10. Shell Programming and Scripting
I have a mail server configured on my server (Postfix), I have a script which requires input to be provided to it.
I would like to know if there is a possibility to trigger this script by sending mail to the server.
This is what I am thinking:
Once the mail arrives on server, the mail will... (6 Replies)
Discussion started by: davidbob
6 Replies
LEARN ABOUT OSX
netsnmp_watcher
watcher(3) net-snmp watcher(3)
NAME
watcher - Watch a specified variable and process it as an instance or scalar object.
Functions
netsnmp_mib_handler * netsnmp_get_watcher_handler (void)
netsnmp_watcher_info * netsnmp_create_watcher_info (void *data, size_t size, u_char type, int flags)
int netsnmp_register_watched_instance (netsnmp_handler_registration *reginfo, netsnmp_watcher_info *watchinfo)
int netsnmp_register_watched_scalar (netsnmp_handler_registration *reginfo, netsnmp_watcher_info *watchinfo)
int netsnmp_watcher_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info
*reqinfo, netsnmp_request_info *requests)
netsnmp_mib_handler * netsnmp_get_watched_timestamp_handler (void)
int netsnmp_watched_timestamp_register (netsnmp_mib_handler *whandler, netsnmp_handler_registration *reginfo, marker_t timestamp)
int netsnmp_register_watched_timestamp (netsnmp_handler_registration *reginfo, marker_t timestamp)
int netsnmp_watched_timestamp_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info
*reqinfo, netsnmp_request_info *requests)
netsnmp_mib_handler * netsnmp_get_watched_spinlock_handler (void)
int netsnmp_register_watched_spinlock (netsnmp_handler_registration *reginfo, int *spinlock)
int netsnmp_watched_spinlock_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info
*reqinfo, netsnmp_request_info *requests)
int netsnmp_register_ulong_scalar (const char *name, oid *reg_oid, size_t reg_oid_len, u_long *it, Netsnmp_Node_Handler *subhandler)
int netsnmp_register_read_only_ulong_scalar (const char *name, oid *reg_oid, size_t reg_oid_len, u_long *it, Netsnmp_Node_Handler
*subhandler)
int netsnmp_register_long_scalar (const char *name, oid *reg_oid, size_t reg_oid_len, long *it, Netsnmp_Node_Handler *subhandler)
int netsnmp_register_read_only_long_scalar (const char *name, oid *reg_oid, size_t reg_oid_len, long *it, Netsnmp_Node_Handler *subhandler)
int netsnmp_register_int_scalar (const char *name, oid *reg_oid, size_t reg_oid_len, int *it, Netsnmp_Node_Handler *subhandler)
int netsnmp_register_read_only_int_scalar (const char *name, oid *reg_oid, size_t reg_oid_len, int *it, Netsnmp_Node_Handler *subhandler)
int netsnmp_register_read_only_counter32_scalar (const char *name, oid *reg_oid, size_t reg_oid_len, u_long *it, Netsnmp_Node_Handler
*subhandler)
Detailed Description
Watch a specified variable and process it as an instance or scalar object.
Version 5.4.2 5 Sep 2008 watcher(3)