This is a sample code that I wrote on a HP-UX 11.11 system. This prints a prompt and takes input. It does not act on the input, except when it receives exit - it exits.
You can uncomment the fprintf in the end to echo what was input.
Last edited by blowtorch; 05-18-2005 at 04:51 PM..
Reason: clarifications
i'm trying to learn unix and i posted a question and what i was typing from school. i can't figure it out. how am i supposed to learn , when i get shutdown by an admin. for posting a homework question. doesn't make any sense. its a dumb rule. thanks for helping (4 Replies)
I have a string which contains following information:
<SZ.T><P ALIGN="CENTER"><FONT FACE="Arial, Helvetica, sans-serif" SIZE="+3">Bundesregierung nimmt sich dicke Deutsche vor</FONT></P></SZ.T>
<SZ.UT><P ALIGN="CENTER"><FONT SIZE="+1"><I> Seehofer und Schmidt planen Kampagne gegen... (3 Replies)
I have concurrent manager stop and check to verify all the process are stopped BUT even after all the process are stopped query script continues to run without break out.
# stop the concurrent manager
$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstpall.sh $DB_USER/$DB_PSWD
# check if the... (1 Reply)
Hi I posted earlier. This is sorta similar but I want to delete rows that dont have R, T, Y or U.
Nam1 RTYU
Nam2 RRTT
Nam3 RYTU
Nam4 IRTT
So the output would look like this?
Nam1 RTYU
Nam2 RRTT
Nam3 RYTU
too many problems
thanks (3 Replies)
I am new to unix and have come across the sed expression but not sure what its doing. Can someone please tell me whats happening in the sed command below? (2 Replies)
Dear users,
I googled for a while, but i have got a lot of different answers regarding a simple unix command.
lets say there are a lot of files in a directory.
How can i list the files in a directory whose file types is "text"?
Thank you in advance (4 Replies)
Hello,
I wrote a script and disabled Ctrl+C using
trap ' ' 2
For security, I cannot allow users to exit the script on their own for then they would have access to the command prompt. Are there any other cases that I need to cover?
Thank you. I'm new to scripting. (6 Replies)
Discussion started by: fzivkovi
6 Replies
LEARN ABOUT CENTOS
papi_strerror
PAPI_strerror(3) PAPI PAPI_strerror(3)NAME
PAPI_strerror -
Returns a string describing the PAPI error code.
SYNOPSIS Detailed Description
C Interface:
#include <papi.h>
char * PAPI_strerror( int errorCode );
Parameters:
code -- the error code to interpret
Return values:
*error -- a pointer to the error string.
NULL -- the input error code to PAPI_strerror() is invalid.
PAPI_strerror() returns a pointer to the error message corresponding to the error code code. If the call fails the function returns the
NULL pointer. This function is not implemented in Fortran.
Example:
* int ret;
* int EventSet = PAPI_NULL;
* int native = 0x0;
* char error_str[PAPI_MAX_STR_LEN];
*
* ret = PAPI_create_eventset(&EventSet);
* if (ret != PAPI_OK)
* {
* fprintf(stderr, "PAPI error %d: %s0, ret, PAPI_strerror(retval));
* exit(1);
* }
* // Add Total Instructions Executed to our EventSet
* ret = PAPI_add_event(EventSet, PAPI_TOT_INS);
* if (ret != PAPI_OK)
* {
* PAPI_perror( "PAPI_add_event");
* fprintf(stderr,"PAPI_error %d: %s0, ret, error_str);
* exit(1);
* }
* // Start counting
* ret = PAPI_start(EventSet);
* if (ret != PAPI_OK) handle_error(ret);
*
See Also:
PAPI_perror PAPI_set_opt PAPI_get_opt PAPI_shutdown PAPI_set_debug
Author
Generated automatically by Doxygen for PAPI from the source code.
Version 5.2.0.0 Tue Jun 17 2014 PAPI_strerror(3)