6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi friends,
I do not have much thoughts so need any help on the below issue:
I need to create shell script that will find the files & throw an error through job (autosys) when file not found.
Daily we use to receive 3 files from a system.
Obstacles:
1) All 3 files names are same.
2)... (4 Replies)
Discussion started by: tush
4 Replies
2. Shell Programming and Scripting
Hi,
If there is an expert that can help:
I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C.
I want to add page numbers before each page break as in : Page XXXX
Regards antman (9 Replies)
Discussion started by: antman
9 Replies
3. Shell Programming and Scripting
Hi
I have a pdf file that is being generated using the rwrun command in the shell script.
I then have the lp command in the shell script to print the same pdf file.
Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies
4. UNIX for Dummies Questions & Answers
Hi Guys,
I hope anyone can help me on how to create a watcher-script. The script will act as watcher wherein whenever it will find an error (say the word Error) in a file, it will prompt the user.
Please help!
br,
rymnd_12345 (3 Replies)
Discussion started by: rymnd_12345
3 Replies
5. Shell Programming and Scripting
Hi Experts
I will have be having 3 types of files in directory
file1_p0_date
file1_p1_date
file1_p2_date
As soon as it sees any of the files it needs to kick off another process and also would need the file name
For this I am creating a file watcher script which will look for file1* My... (2 Replies)
Discussion started by: westernmichnov
2 Replies
6. Shell Programming and Scripting
Hi
Please help me in this
I want to execute a shell script abc.ksh.
But I only want it to execute if file XYZ is not present.
If file XYZ is present than I want to unix to sleep for 5 Sec and than agaian check for XYX existence.
if it sleeps for more than 30 seconds ( 6 time )I want it to... (3 Replies)
Discussion started by: er_zeeshan05
3 Replies
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)