Sponsored Content
Operating Systems OS X (Apple) Command Prompt changed to "mrbigglesworth" ?!?! Post 302827049 by alister on Thursday 27th of June 2013 07:58:44 PM
Old 06-27-2013
Glad it wasn't anything serious, otherwise I might have felt guilty for laughing at "mrbigglesworth". Smilie

Regards,
Alister
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

read -p "prompt text" foo say "read: bad option(s)" in Bourne-Shell

Hallo, i need a Prompting read in my script: read -p "Enter your command: " command But i always get this Error: -p: is not an identifier When I run these in c-shell i get this error /usr/bin/read: read: bad option(s) How can I use a Prompt in the read command? (9 Replies)
Discussion started by: wiseguy
9 Replies

2. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

3. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

4. AIX

"/" doesn't work on command prompt for searching commands last typed

When I use "/" to look for a particular command that I typed in the current session it says D02:-/home/user1/temp> /job ksh: /job: not found. D02:-/home/user1/temp> previously it used to fetch all the commands which had job in it.. for example subjob, endjob, joblist etc... may I... (7 Replies)
Discussion started by: meetzap
7 Replies

5. Emergency UNIX and Linux Support

Mapping between "Pseudo name" and "Logical device ID" in powerpath with SVM changed....

Dear All, I was having powerpath 5.2 on SUN server with SVM connected to CLARIION box.Please find the following output : root # powermt display dev=all Pseudo name=emcpower3a CLARiiON ID=CK200073400372 Logical device ID=60060160685D1E004DD97FB647BFDC11 state=alive; policy=CLAROpt;... (1 Reply)
Discussion started by: Reboot
1 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

8. Emergency UNIX and Linux Support

Accidentally Changed File Ownership to Include a "Comment" [AIX]

Hi. I've had a little mishap. To cut a long story short, I've accidentally recursively ran chown on a directory (actually a bunch of 'em). Not a problem in itself, but I had a slight error in the code I used to get the list of directories and ended up with a comment in the file ownership. ... (15 Replies)
Discussion started by: Scott
15 Replies

9. Shell Programming and Scripting

Script to echo "File permissions or ownership changed from required " when accidentally changed.

Hi All, I have to work in the late nights some times for server maintenance and in a hurry to complete I am accidentally changing ownership or permission of directories :( which have similar names ( /var in root and var of some other directory ).:confused: Can some one suggest me with the... (1 Reply)
Discussion started by: shiek.kaleem
1 Replies

10. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
Error handling(3)						      BrlAPI							 Error handling(3)

NAME
Error handling - How to handle errors. Data Structures struct brlapi_error_t Macros #define BRLAPI_ERROR_SUCCESS 0 #define BRLAPI_ERROR_NOMEM 1 #define BRLAPI_ERROR_TTYBUSY 2 #define BRLAPI_ERROR_DEVICEBUSY 3 #define BRLAPI_ERROR_UNKNOWN_INSTRUCTION 4 #define BRLAPI_ERROR_ILLEGAL_INSTRUCTION 5 #define BRLAPI_ERROR_INVALID_PARAMETER 6 #define BRLAPI_ERROR_INVALID_PACKET 7 #define BRLAPI_ERROR_CONNREFUSED 8 #define BRLAPI_ERROR_OPNOTSUPP 9 #define BRLAPI_ERROR_GAIERR 10 #define BRLAPI_ERROR_LIBCERR 11 #define BRLAPI_ERROR_UNKNOWNTTY 12 #define BRLAPI_ERROR_PROTOCOL_VERSION 13 #define BRLAPI_ERROR_EOF 14 #define BRLAPI_ERROR_EMPTYKEY 15 #define BRLAPI_ERROR_DRIVERERROR 16 #define BRLAPI_ERROR_AUTHENTICATION 17 #define brlapi_error (*brlapi_error_location()) #define brlapi_errno (brlapi_error.brlerrno) #define brlapi_libcerrno (brlapi_error.libcerrno) #define brlapi_gaierrno (brlapi_error.gaierrno) #define brlapi_errfun (brlapi_error.errfun) Typedefs typedef uint32_t brlapi_packetType_t typedef void(BRLAPI_STDCALL * brlapi_exceptionHandler_t )(int error, brlapi_packetType_t type, const void *packet, size_t size) typedef void(BRLAPI_STDCALL * brlapi__exceptionHandler_t )(brlapi_handle_t *handle, int error, brlapi_packetType_t type, const void *packet, size_t size) Functions void BRLAPI_STDCALL brlapi_perror (const char *s) brlapi_error_t *BRLAPI_STDCALL brlapi_error_location (void) const char *BRLAPI_STDCALL brlapi_strerror (const brlapi_error_t *error) const char *BRLAPI_STDCALL brlapi_getPacketTypeName (brlapi_packetType_t type) int BRLAPI_STDCALL brlapi_strexception (char *buffer, size_t bufferSize, int error, brlapi_packetType_t type, const void *packet, size_t packetSize) int BRLAPI_STDCALL brlapi__strexception (brlapi_handle_t *handle, char *buffer, size_t bufferSize, int error, brlapi_packetType_t type, const void *packet, size_t packetSize) brlapi_exceptionHandler_t BRLAPI_STDCALL brlapi_setExceptionHandler (brlapi_exceptionHandler_t handler)" brlapi__exceptionHandler_t BRLAPI_STDCALL brlapi__setExceptionHandler (brlapi_handle_t *handle, brlapi__exceptionHandler_t handler)" void BRLAPI_STDCALL brlapi_defaultExceptionHandler (int error, brlapi_packetType_t type, const void *packet, size_t size) void BRLAPI_STDCALL brlapi__defaultExceptionHandler (brlapi_handle_t *handle, int error, brlapi_packetType_t type, const void *packet, size_t size) Variables const char * brlapi_errlist [] const int brlapi_nerr brlapi_error_t brlapi_error int brlapi_errno int brlapi_libcerrno int brlapi_gaierrno const char * brlapi_errfun Detailed Description When a function fails, brlapi_errno will hold an error code to explain why it failed. It should always be reported somehow. Although most errors are reported that way, some (called exceptions) are reported asynchronously for efficiency reasons, because they always just report a programming error. The affected functions are: brlapi_setFocus, brlapi_write* and brlapi_sendRaw. When they happen, the next call to brlapi_something will close the connection and call the exception handler. If the exception handler returns, the brlapi_something function will return an end-of-file error. The default exception handler (brlapi_defaultExceptionHandler()) dumps the guilty packet before abort()ing. It can be replaced by calling brlapi_setExceptionHandler(). For instance, the Java and Python bindings use this for raising a Java or Python exception that may be caught. Macro Definition Documentation #define brlapi_errfun (brlapi_error.errfun) Cheat about the brlapi_errfun C token #define brlapi_errno (brlapi_error.brlerrno) Cheat about the brlapi_errno C token #define brlapi_error (*brlapi_error_location()) Cheat about the brlapi_error C token #define BRLAPI_ERROR_AUTHENTICATION 17 Authentication failed #define BRLAPI_ERROR_CONNREFUSED 8 Connection refused #define BRLAPI_ERROR_DEVICEBUSY 3 A connection is already using RAW or suspend mode #define BRLAPI_ERROR_DRIVERERROR 16 Packet returned by driver too large #define BRLAPI_ERROR_EMPTYKEY 15 Key file empty #define BRLAPI_ERROR_EOF 14 Unexpected end of file #define BRLAPI_ERROR_GAIERR 10 Getaddrinfo error #define BRLAPI_ERROR_ILLEGAL_INSTRUCTION 5 Forbiden in current mode #define BRLAPI_ERROR_INVALID_PACKET 7 Invalid size #define BRLAPI_ERROR_INVALID_PARAMETER 6 Out of range or have no sense #define BRLAPI_ERROR_LIBCERR 11 Libc error #define BRLAPI_ERROR_NOMEM 1 Not enough memory #define BRLAPI_ERROR_OPNOTSUPP 9 Operation not supported #define BRLAPI_ERROR_PROTOCOL_VERSION 13 Bad protocol version #define BRLAPI_ERROR_SUCCESS 0 Success #define BRLAPI_ERROR_TTYBUSY 2 A connection is already running in this tty #define BRLAPI_ERROR_UNKNOWN_INSTRUCTION 4 Not implemented in protocol #define BRLAPI_ERROR_UNKNOWNTTY 12 Couldn't find out the tty number #define brlapi_gaierrno (brlapi_error.gaierrno) Cheat about the brlapi_gaierrno C token #define brlapi_libcerrno (brlapi_error.libcerrno) Cheat about the brlapi_libcerrno C token Typedef Documentation typedef void(BRLAPI_STDCALL * brlapi__exceptionHandler_t)(brlapi_handle_t *handle, int error, brlapi_packetType_t type, const void *packet, size_t size) typedef void(BRLAPI_STDCALL * brlapi_exceptionHandler_t)(int error, brlapi_packetType_t type, const void *packet, size_t size) Types for exception handlers Types of exception handlers which are to be given to brlapi_setExceptionHandler() and brlapi__setExceptionHandler(). Parameters: handle is the handle corresponding to the guilty connection; error is a BRLAPI_ERROR_ error code; type is the type of the guilty packet; packet points to the content of the guilty packet (might be a little bit truncated); size gives the guilty packet's size. typedef uint32_t brlapi_packetType_t Type for packet type. Only unsigned can cross networks, 32bits Function Documentation void BRLAPI_STDCALL brlapi__defaultExceptionHandler (brlapi_handle_t *handle, interror, brlapi_packetType_ttype, const void *packet, size_tsize) brlapi__exceptionHandler_t BRLAPI_STDCALL brlapi__setExceptionHandler (brlapi_handle_t *handle, brlapi__exceptionHandler_thandler) int BRLAPI_STDCALL brlapi__strexception (brlapi_handle_t *handle, char *buffer, size_tbufferSize, interror, brlapi_packetType_ttype, const void *packet, size_tpacketSize) void BRLAPI_STDCALL brlapi_defaultExceptionHandler (interror, brlapi_packetType_ttype, const void *packet, size_tsize) brlapi_error_t* BRLAPI_STDCALL brlapi_error_location (void) Get per-thread error location In multithreaded software, brlapi_error is thread-specific, so api.h cheats about the brlapi_error token and actually calls brlapi_error_location(). This gets the thread specific location of global variable brlapi_error const char* BRLAPI_STDCALL brlapi_getPacketTypeName (brlapi_packetType_ttype) Get plain packet type brlapi_getPacketTypeName() returns the plain packet type name corresponding to its argument. void BRLAPI_STDCALL brlapi_perror (const char *s) Print a BrlAPI error message brlapi_perror() reads brlapi_error, and acts just like perror(). brlapi_exceptionHandler_t BRLAPI_STDCALL brlapi_setExceptionHandler (brlapi_exceptionHandler_thandler) Set a new exception handler brlapi_setExceptionHandler() replaces the previous exception handler with the handler parameter. The previous exception handler is returned to make chaining error handlers possible. The default handler just prints the exception and abort()s. const char* BRLAPI_STDCALL brlapi_strerror (const brlapi_error_t *error) Get plain error message brlapi_strerror() returns the plain error message corresponding to its argument. int BRLAPI_STDCALL brlapi_strexception (char *buffer, size_tbufferSize, interror, brlapi_packetType_ttype, const void *packet, size_tpacketSize) Describes an exception brlapi_strexception() puts a text describing the given exception in buffer. The beginning of the guilty packet is dumped as a sequence of hex bytes. Returns: the size of the text describing the exception, following snprintf()'s semantics. Variable Documentation const char* brlapi_errfun Shorthand for brlapi_error.errfun const char* brlapi_errlist[] Error message list These are the string constants used by brlapi_perror(). int brlapi_errno Shorthand for brlapi_error.errno brlapi_error_t brlapi_error Global variable brlapi_error brlapi_error is a global left-value containing the last error information. Its errno field is not reset to BRLAPI_ERROR_SUCCESS on success. This information may be copied in brlapi_error_t variables for later use with the brlapi_strerror function. int brlapi_gaierrno Shorthand for brlapi_error.gaierrno int brlapi_libcerrno Shorthand for brlapi_error.libcerrno const int brlapi_nerr Number of error messages Author Generated automatically by Doxygen for BrlAPI from the source code. Version 1.0 Mon Apr 1 2013 Error handling(3)
All times are GMT -4. The time now is 05:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy