catch man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

catch(n)		     Tcl Built-In Commands		      catch(n)

______________________________________________________________________________

NAME
       catch - Evaluate script and trap exceptional returns

SYNOPSIS
       catch script ?varName?
_________________________________________________________________

DESCRIPTION
       The  catch  command may be used to prevent errors from aborting command
       interpretation.	Catch calls the Tcl interpreter recursively to execute
       script, and always returns a TCL_OK code, regardless of any errors that
       might occur while executing script.  The return value from catch	 is  a
       decimal	string	giving	the code returned by the Tcl interpreter after
       executing script.  This will be 0 (TCL_OK) if there were no  errors  in
       script; otherwise it will have a non-zero value corresponding to one of
       the exceptional return codes (see tcl.h for  the	 definitions  of  code
       values).	 If the varName argument is given, then it gives the name of a
       variable; catch will set the  variable  to  the	string	returned  from
       script (either a result or an error message).

       Note  that  catch  catches all exceptions, including those generated by
       break and continue as well as errors.

KEYWORDS
       catch, error

Tcl								      catch(n)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net