07-22-2012
Yes, I've tried it and it works, but how do I know I've covered every error possibility. Say, I missed an error in the "egrep" list, The routine might fail to detect an error.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i am facing an error in the following script in the korn shell but in bash it is working , can any help me to convert the below script to korn shell script without errors.
echo 123.4566 | bc -l | awk -F '.' '{ print $1; exit; }'
Thanks in advance
kamal (5 Replies)
Discussion started by: G.K.K
5 Replies
2. Shell Programming and Scripting
Hi,
I want to copy all the log file except current date log from one server to another server.
Log File will be like this LOGNIG_08_11_2008*.log
For this
cd /test/log
date -d '1 day ago' "+%d_%m_%Y" -->This command gives previous day
scp LOGSNIG_date -d '1 day ago' "+%d_%m_%Y"... (2 Replies)
Discussion started by: srinivasvandana
2 Replies
3. Shell Programming and Scripting
Hi guys,
I 've been brewing this shellscript, but I can't test it until next tuesday.
In the meantime I am too curious wether it will work or not, so I'd like to hear your comments.
Background:
I want to watch the user quota for mailboxes in various email-domains on a IMAP-server.
I have... (1 Reply)
Discussion started by: algernonz
1 Replies
4. Shell Programming and Scripting
Hi all,
My aim is to get the log details of datastage job using unix scipt.
we know that DSjob are used to get the log details from datastage universe through the adminstrator.can we call that DSjob rountine in our unix script.
Thanks in advance
Regards,
NimmyRaju:) (0 Replies)
Discussion started by: nimmyraju
0 Replies
5. Shell Programming and Scripting
I have written a bit of shell that lets our company check all our SSL certs.
the aim is to have a list of servers and run this check from cron once a week.
Our managers have decided that we will not run BASH, so it has been written in /bin/sh and only needs openssl, no perl, no bash, no extra... (8 Replies)
Discussion started by: robsonde
8 Replies
6. Shell Programming and Scripting
I have written a little script to scan users home directories for certain commands located inside a file. The script is setup to include a small help section and allows for passing a username argument to override scanning of all users home directories.
A lot of searching and trial and error has... (7 Replies)
Discussion started by: bkeep
7 Replies
7. Shell Programming and Scripting
Hello guys,
In my script, I need to add two other routines where I Manipulate the files with a 'x'
The routine looks at CLI named qip-getobjectprof that references a input file named hosts_list.txt
Then I use the CLI named qip-setobject to set the orignal name with an 'x'and move the... (3 Replies)
Discussion started by: richsark
3 Replies
8. Shell Programming and Scripting
Hi,
While running below code i am getting error as below
0403-004 Specify a parameter with this command.
Please look it below code and let me know about if condition.
Code is As below
#!/usr/bin/ksh
Infa_Src_Dir=$DIR/SrcFiles/pp
Load_Info_Lst_Path=$DIR/SrcFiles/pp... (1 Reply)
Discussion started by: samadhanpatil
1 Replies
9. Shell Programming and Scripting
Hello,
I am working on my first ksh script to review daily reports. The script uses different functions to check different types of reports in csv format. A control file gets read in with information regarding the report, other info, and the function to use.
When I run the script I get the... (4 Replies)
Discussion started by: bot9196
4 Replies
10. UNIX for Beginners Questions & Answers
I have no idea how to write ksh script, but i'm really in need of help with this. I using fedora 30 and in attempt of runnig attached script i getting those errors, i solved first error by removing excess bracket, but i do not know what should i do with other. Pls sorry for trash post. (8 Replies)
Discussion started by: NullPtr
8 Replies
LEARN ABOUT HPUX
xhpseterrorhandler
XHPSetErrorHandler(3X) XHPSetErrorHandler(3X)
NAME
XHPSetErrorHandler - Register an X error handling routine.
SYNOPSIS
#include <X11/XHPlib.h>
typedef int (*PFI) ();
PFI XHPSetErrorHandler (display, routine)
Display *display;
int (*routine) ();
int routine (display, error)
Display *display;
XErrorEvent *error;
DESCRIPTION
This request registers with Xlib the address of a routine to handle X errors. It is intended to be used by libraries and drivers that wish
to establish an error handling routine without interfering with any error handling routine that may have been established by the client
program.
XHPSetErrorHandler records one error handling routine per connection to the server. Therefore, in order for a library or driver to set up
its own error handling routine without affecting that of the client, the library or driver must first have established its own connection
to the server via XOpenDisplay.
When an XErrorEvent is received by the client, which error handling routine is invoked is determined by the display associated with the
error. If the display matches that associated with a driver error handling routine, that error handling routine will be invoked. If it
does not match any driver routine, the error handling routine established by the client, if any exists, will be invoked. Otherwise, the
default Xlib error handler will be invoked.
XHPSetErrorHandler returns the address of the previously established error handler. If that error handler was the default error handler,
NULL is returned.
A driver or library may remove its error handler by invoking XHPSetErrorHandler with a NULL error handling routine.
FILES
/usr/include/X11/XHPlib.h
ORIGIN
Hewlett-Packard Company
SEE ALSO
XSetErrorHandler(3x)
X Version 11 Release 5 XHPSetErrorHandler(3X)