OK you should probably start by extracting the 3 data fields you need from the log (toemail, status and errorstr):
It then looks like you want to suppress display of the bounced status and transpose/convert the errorstr.
The errorstr seems to be quite free format and I suspect there are a many more types of errorstr than you example data lists so I've left the string as it appears in the original logfile. Perhaps you can give us some more indication on what should happen with this string.
Hi,
We have a text file which has the following data.
ISA~00~ ~00~ ~ZZ~VISTN ~ZZ~U1CAD ~051227~183
7~U~00200~000011258~0~P~<
GS~FA~EE05J~U1CAD~051227~1831~000011258~X~002002
ST~997~0001
AK1~SH~247
AK2~856~2470001
AK5~A
AK2~856~2470002
AK5~A... (3 Replies)
How To Generate different different progress bar in shell script?
like we install some software it show us progress, like we install RPM that also show us progress.
Thanks,
Bash (2 Replies)
Hello, I wanted to delete all files which are placed 14 days back. Here is my below script. My script works very well and it deletes all files 14 days back.
I wanted to display message incase if the delete script is not successful. The below script returns always successful. But the directory... (6 Replies)
Hello,
I am running a shell script whose execution often takes several hours to complete. Is there way I can get some kind of status update as the job is running? Something as simple as the start and the current time stamp.
Thanks,
Gussi (2 Replies)
When command is executed by forking, the console displays the status of that command. I want to suppress it.. how to do it ?
Example:
var1=`date` &
echo "hello world";
output:
hello world
+ Done var1=`date`
I want to suppress the second line "+ Done var1=`date`".
I... (10 Replies)
Hi,
I have few processes in the server continuous run few jobs, each of the process will generate a log file which detailing when its jobs are completed.
the logfile will has the name something like this, result1.log, result2.log, result3.log,.... result10.log, result11.log, result12.log.......... (8 Replies)
autorep -m bogus
Machine Name Max Load Current Load Factor O/S Status
___________ ________ ___________ ______ ________ ______
bogus --- --- 1.00 Sys Agent Online
Status
______
Online
Offline
Missing
Unqualified
The "Status" always "Online". I like create a script execute run... (6 Replies)
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
Hi All,
Need some help like how to exit from the script after updating the column in data base.
db2 connect to DB
STATUS=$(db2 "SELECT STATUS FROM XYZ )
echo $STATUS
Initially the status value will be '4' or 'NOT YET RUN'.
The Shell script has to run until the status value is updated... (7 Replies)
Guyz,
Please let me know about script which is to be sending an automatic email to particular mail id's when a monotoring job get complete with status successful. (1 Reply)
Discussion started by: Rehan Ahmad
1 Replies
LEARN ABOUT HPUX
gss_display_status
gss_display_status(3) Library Functions Manual gss_display_status(3)NAME
gss_display_status() - provide an application with the textual representation of a GSSAPI status code that can be displayed to a user or
used for logging
SYNOPSIS DESCRIPTION
The routine provides the context initiator with a textual representation of a status code so that the application can display the message
to a user or log the message. Because some status values can indicate more than one error, the routine enables the calling application to
process status codes with multiple messages.
The message_context parameter indicates which error message the application should extract from the status_value parameter. The first time
an application calls the routine, it should initialize the message_context parameter to 0 (zero) and return the first message. If there
are additional messages to read, the routine returns a nonzero value. The application can call repeatedly to generate a single text string
for each call.
Input Parameters
status_value Specifies the status value to convert.
status_type Specifies one of the following status types:
Major status - GSS status code
Minor status - mechanism status code eg. Kerberos
mech_type Specifies the underlying security mechanism. Supply to obtain the system default.
Input/Output
message_context Indicates whether the status code has multiple messages to read. The first time an application calls the routine,
you initialize the parameter to 0 (zero). The routine returns the first message. If there are more messages, the
routine sets the parameter to a nonzero value. The application calls the routine repeatedly to get the next message,
until the message_context parameter is zero again.
Output
status_string Returns the status value as a text message.
minor_status Returns a status code from the security mechanism.
STATUS CODES
The following status codes can be returned:
The routine was completed successfully.
The translation requires a mechanism that is unsupported
or unavailable.
Indicates either the status value was not recognized or
the status type was something other than or
The routine failed. Check the
minor_status for details.
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO
The manpages for DCE-GSSAPI are included with the DCE-CoreTools product. To see those manpages add to
gss_display_status(3)