Sponsored Content
Full Discussion: awk - Beginners Question
Top Forums Shell Programming and Scripting awk - Beginners Question Post 302087173 by Klashxx on Wednesday 30th of August 2006 05:34:25 AM
Old 08-30-2006
Something to start with:
Code:
BEGIN {errorcode=0}

/From/
      #Read until next 'From'
       {
       while( /^<[a-z]+/ !~ $0 )
         {
         if (match ($0,/Error Description/))
            print "01"
         else if (match ($0,/ErrorDesc2/))
            print "02"
         else if(match ($0,/ErrorDesc31/))
            print "03"
         next
         }
       }

       END{
       if(errorcode != 01 && errorcode != 02 && errorcode != 03) print "04"
       }

 

8 More Discussions You Might Find Interesting

1. Programming

X-programming for beginners

Good morning. Thanks for the very valuable hard-to-find information I get from you guys. Can anybody give any suggested websites or references for anyone who wants to begin learning on programming applications in X? Thanks to anyone in advance... (1 Reply)
Discussion started by: jfsuminist
1 Replies

2. UNIX Desktop Questions & Answers

unix course for beginners

does anyone know of a course for unix beginners (1 Reply)
Discussion started by: moose
1 Replies

3. UNIX Desktop Questions & Answers

UNIX for beginners

I am new to non Windows operating systems. Does anyone have advice on which UNIX OS vendor would be good for learning purposes. I was looking for a version of UNIX that runs on the Intel platform. Do you have any recommendations on where to purchase the software? Thank you. (14 Replies)
Discussion started by: jmy113437
14 Replies

4. Programming

Beginners question about fork

Hi everyone: I'm developing a dynamic library for notifications, this library is used for a daemon that i've programmed, when something goes wrong the library should send an email to an administrator, but since sending an email is a non-vital process then it can fail (it should work as an... (4 Replies)
Discussion started by: edgarvm
4 Replies

5. Shell Programming and Scripting

awk beginners question

hi, i start using awk and have a very basic problem. here's my code: #! /usr/bin/awk -f # 2010, scz # { $1 == "test" { print $2 } } this works on the command line but not as "program" - what is the difference between awk programs on the command line and executing awk... (3 Replies)
Discussion started by: svencz
3 Replies

6. Shell Programming and Scripting

Shell program for beginners

Hey, i hope someone can help me with this program. I need to write a program in shell which will return how many times and how much time have users been logged in system between two dates. We give time as 2 dates as arguments in command line. Example: $ nameofprogram 27/04 06/05 ... (1 Reply)
Discussion started by: Exander
1 Replies

7. UNIX for Dummies Questions & Answers

UNIX for beginners

i'm just a beginner in unix environment- please help which book to read and which os to use!!! :confused: seriously i've no idea what is unix or how much capable it is!! (1 Reply)
Discussion started by: gaurav singh
1 Replies

8. UNIX for Dummies Questions & Answers

UNIX ebook for beginners

hi all, Can you suggest me a ebook for unix beginners. I am new to unix. (2 Replies)
Discussion started by: rajasingam
2 Replies
MPI_File_call_errhandler(3OpenMPI)										MPI_File_call_errhandler(3OpenMPI)

NAME
MPI_File_call_errhandler - Passes the supplied error code to the error handler assigned to a file SYNTAX
C Syntax #include <mpi.h> int MPI_File_call_errhandler(MPI_File fh, int errorcode) Fortran Syntax INCLUDE 'mpif.h' MPI_FILE_CALL_ERRHANDLER(FH, ERRORCODE, IERROR) INTEGER FH, IERRORCODE, IERROR C++ Syntax #include <mpi.h> void MPI::File::Call_errhandler(int errorcode) const INPUT PARAMETERS
fh file with error handler (handle). errorcode MPI error code (integer). OUTPUT PARAMETER
IERROR Fortran only: Error status (integer). DESCRIPTION
This function invokes the error handler assigned to the file handle fh with the supplied error code errorcode. If the error handler was successfully called, the process is not aborted, and the error handler returns, this function returns MPI_SUCCESS. Unlike errors on communicators and windows, the default errorhandler for files is MPI_ERRORS_RETURN. ERRORS
Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ func- tions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object. See the MPI man page for a full list of MPI error codes. SEE ALSO
MPI_File_create_errhandler MPI_File_set_errhandler Open MPI 1.2 September 2006 MPI_File_call_errhandler(3OpenMPI)
All times are GMT -4. The time now is 10:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy