Sponsored Content
Top Forums Programming Need program to continue even when encountering errors Post 302852299 by wisecracker on Wednesday 11th of September 2013 07:27:17 AM
Old 09-11-2013
And to add to JM's reply, what happens if your system aquires a corrupted file and or file
system?

Also suppose your code inadvertantly generates a divide by zero or encounters a major HW
error?
How are you going to ignore those effects?

Your system does not just have errors due to missing files or minor _script_design_ errors
but 'everything else and his brother included' too...

I would suggest you abort your idea and build-in error detection purely for your pwn peace
of mind...

Just my 5 pennoth...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (0 Replies)
Discussion started by: mcastill66
0 Replies

2. AIX

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (2 Replies)
Discussion started by: mcastill66
2 Replies

3. UNIX for Dummies Questions & Answers

Major OS errors/Bash errors help!!!!

Hi all, dummy here.... I have major errors on entering the shell. On login I get: -bash: dircolors: command not found -bash: tr: command not found -bash: fgrep: command not found -bash: grep: command not found -bash: grep: command not found -bash: id: command not found -bash: [: =: unary... (12 Replies)
Discussion started by: wcmmlynn
12 Replies

4. UNIX for Dummies Questions & Answers

encountering problem with vim

while entering into vim insert mode some garbage is getting printed in to the file could some one help to avoid this . (1 Reply)
Discussion started by: Gopi Krishna P
1 Replies

5. Shell Programming and Scripting

Bypass getopts errors and continue processing?

Is there a way to do this? while getopts "n:g:m:i:p:d:a:" OPTION do case $OPTION in ... if i do a ./script.sh -n john -u user -p password, it will output: name= john ./script.sh: illegal option -- u Is there a way to skip over errors so that -p will get processed as well? By... (7 Replies)
Discussion started by: etranman1
7 Replies

6. Shell Programming and Scripting

Scan a file in realtime and execute certain commands on encountering 5 consecutive identical lines

Mysql log has something like below: I need a bash shell script that will do the following: 1) The script will scan the mysql.log file constantly in real time (something like tail -F mysql.log) 2) If it encounters 5 consecutive identical lines then it would invoke some commands (say... (4 Replies)
Discussion started by: proactiveaditya
4 Replies

7. Ubuntu

Encountering problem on upgrading the packages

Hi folks, Ubuntu 9.04 I have an old box not running for years. I just dig it out from the store room. On running; $ sudo aptitude update ...... ...... Err http://hk.archive.ubuntu.com jaunty/main Packages 404 Not Found Err http://hk.archive.ubuntu.com jaunty/restricted Packages ... (1 Reply)
Discussion started by: satimis
1 Replies

8. Homework & Coursework Questions

program to find and print a Fibonacci sequence of numbers. --Errors

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am trying to convert a C language program over to Sparc Assembley and I am getting Undefined first referenced... (4 Replies)
Discussion started by: kenjiro310
4 Replies

9. Programming

Please help me understand errors in perl program

co #! /usr/bin/perl use strict; use warnings; use diagnostics; my $amount=""; my $bain; ; my $code=""; my $date;my $day;my $line; my $mo; my $LNUM = 0; my $xyz=""; my $yr; $yr = 2015; my $F; my @F; while (<>) { chop; ++$LNUM; @F = split(';'); if ( $F eq "Date" )... (1 Reply)
Discussion started by: hpk
1 Replies

10. Shell Programming and Scripting

Split a file based on encountering header

I need to split a file based on headers found Input file file1 content: ADD john mickey DROP matt sam output of file F1 john mickey output of file F2 matt sam (5 Replies)
Discussion started by: Diddy
5 Replies
ERROR::PASS5(7stap)													       ERROR::PASS5(7stap)

NAME
error::pass5 - systemtap pass-5 errors DESCRIPTION
Errors that occur during pass 5 (execution) can have a variety of causes. exceptional events during script execution The systemtap translator and runtime include numerous error checks that aim to protect the systems and the users from mistakes or transient conditions. The script may deliberately call the error() tapset function to signal a problem. Some memory needed for accessing $context variables may be temporarily unavailable. Consider using the try/catch construct to wrap script fragments in exception-handling code. Consider using the stap --suppress-handler-errors or stap --skip-badvars option. resource exhaustion One of several types of space or time resource limits may be exceeded by the script, including system overload, too many tuples to be stored in an array, etc. Some of the error messages identify the constraint by macro name, which may be individually raised. Consider using the stap --suppress-handler-errors option. Extend or disable resource limits using the stap -DLIMIT=NNNN option. remote execution server problems If you use the stap --remote option to direct a systemtap script to be executed somewhere else, ensure that an SSH connection may be made to the remote host, and that it has the current systemtap runtime installed & available. installation/permission problems It is possible that your installation of systemtap was not correctly installed. For example, the /usr/bin/staprun program may lack the necessary setuid permissions, or your invoking userid might not have sufficient privileges (root, or stapusr and related group memberships). Environment variables may interfere with locating /usr/libexec/.../stapio. errors from target program The program invoked by the stap -c CMD option may exit with a non-zero code. uncaught exceptions in the target program When using --runtime=dyninst you may encounter an issue where the target program aborts with a message like "terminate called after throwing an instance of 'foo_exception'". This is unfortunately a limitation of Dyninst, which sometimes prevents exceptions from properly unwinding through instrumented code. GATHERING MORE INFORMATION
Increasing the verbosity of pass-5 with an option such as --vp 00001 can help pinpoint the problem. SEE ALSO
stap(1), http://sourceware.org/systemtap/wiki/TipExhaustedResourceErrors, error::fault(7stap), error::reporting(7stap) ERROR::PASS5(7stap)
All times are GMT -4. The time now is 03:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy