Sponsored Content
Full Discussion: Exception Handling
Top Forums Shell Programming and Scripting Exception Handling Post 302118842 by bertpereira on Thursday 24th of May 2007 12:52:49 PM
Old 05-24-2007
Thanks!!!

Awesome!!!! - Is there a way i can GOTO a certain block if such an error is trapped?? - for instance once the error is encountered GOTO cleanup-script block??
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

exception handling

Does exception handling exist in any UNIX enviornment? I develop on Windows MSVC++ land and need to port to UNIX. (1 Reply)
Discussion started by: RichardS
1 Replies

2. Programming

Linux g++ 2.95.3 exception handling

Anybody happen to be familiar with any deficiencies with g++ 2.95.3 regarding exception handling, specifically in multi-threaded / multi-module (shared library) based applications? I'm seeing behavior where thrown exceptions are not caught, but basically ignored causing the application to... (0 Replies)
Discussion started by: earl
0 Replies

3. Shell Programming and Scripting

Exception-handling in Shell programs

Hi all, I am writing a set of scripts and some of these are nested within others. I want to be able to execute a single high-level script at the command-line, which in turn may invoke other scripts as required, and when a failure occurs in any of the nested scripts, I want to be able to track... (2 Replies)
Discussion started by: chaitu_inmage
2 Replies

4. Linux

Handling "command not found" exception

hello friends, I am given a project to handle the command not found exception.I am using RED HAT 9. Generally, when we press a wrong command in the terminal: example :- " $cet " in place of " $cat ". Then we get this exception. But I need to give the output as the combinations that are possible... (5 Replies)
Discussion started by: nsharath
5 Replies

5. Programming

Advanced Exception Handling in C++

Hi Friend, Could you please provide me with some tutorial for Advanced Exception handling in C++, mainly set_terminate() and set_unexpected() functions? Please find the details below: OS: Unix Compiler: gcc. Thanks. :) Awesome001 (0 Replies)
Discussion started by: awesome001
0 Replies

6. Shell Programming and Scripting

Exception handling

Sometimes when I try to use curl to upload to an ftp server, I get the message: $curl -T file.wmv ftp.eu.filesonic.com --user user:password curl: (8) Got a 421 ftp-server response when 220 was expected How do I get the script to try again if I get the message curl: (8)? (2 Replies)
Discussion started by: locoroco
2 Replies

7. Programming

Exception Handling C++

Hello All, I have a question ....which I am totally confused about! If I have a fxn foo in a program which returns a logical value. But it has a posssiblity to throw some exception. Now my exception handler returns a value as a string stating why the exception occured. But my... (1 Reply)
Discussion started by: mind@work
1 Replies

8. Solaris

solaris 7 exception

Hi all, An application works well under 2.6 but under 7 it gives TEXT_IO exceptions. (Is_Open, Check_Is_Open, Get_Line procedures). Any idea? Regards (3 Replies)
Discussion started by: endoavour
3 Replies

9. Shell Programming and Scripting

Monitor logs for exception and if exception come then sent an email

Hi Folks, please advise , I have logs generated on unix machine at location /ops/opt/aaa/bvg.log , now sometimes there come exception in these logs also, so I want to write such a script such that it should continuously monitor these logs and whenever any exception comes that is it try to find... (3 Replies)
Discussion started by: tuntun27272727
3 Replies
icheck(8)						      System Manager's Manual							 icheck(8)

Name
       icheck - check inode consistency

Syntax
       /etc/icheck [ -s ]  [ -b numbers ] [ filesystem ]

Description
       The command is obsoleted for normal consistency checking by

       The command examines a file system, builds a bit map of used blocks, and compares this bit map against the free list maintained on the file
       system.	If the file system is not specified, a set of default file systems is checked.	The normal output of includes a report of:

       o   The total number of files and the numbers of regular, directory, block special and character special files.

       o   The total number of blocks in use and the numbers of single-, double-, and triple-indirect blocks and directory blocks.

       o   The number of free blocks.

       o   The number of blocks missing, that is, not in any file nor in the free list.

       The option causes to ignore the actual free list and reconstruct a new one by rewriting the super-block of the file system.  The file  sys-
       tem  should  be dismounted while this is done; if this is not possible (for example if the root file system has to be salvaged) care should
       be taken that the system is quiescent and that it is rebooted immediately afterwards so that the old, bad in-core copy of  the  super-block
       will not continue to be used.  Notice also that the words in the super-block which indicate the size of the free list and of the i-list are
       believed.  If the super-block has been curdled these words will have to be patched.  The option causes the normal output reports to be sup-
       pressed.

       Following the option is a list of block numbers; whenever any of the named blocks turns up in a file, a diagnostic is produced.

       The command is faster if the raw version of the special file is used, since it reads the i-list many blocks at a time.

Diagnostics
       For  duplicate  blocks  and  bad  blocks  (which lie outside the file system) announces the difficulty, the i-number, and the kind of block
       involved.  If a read error is encountered, the block number of the bad block is printed and considers it to  contain  0.   `Bad	freeblock'
       means that a block number outside the available space was encountered in the free list.	`n dups in free' means that n blocks were found in
       the free list which duplicate blocks either in some file or in the earlier part of the free list.

Restrictions
       Since is inherently two-pass in nature, extraneous diagnostics may be produced if applied to active file systems.

       It believes even preposterous super-blocks and consequently can get core images.

Files
       Default file systems vary with installation.

See Also
       fs(5), clri(8), dcheck(8), fsck(8), ncheck(8)

																	 icheck(8)
All times are GMT -4. The time now is 03:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy