http://www.aros.orgAROS-ExecAROS-Exec ArchivesPower2People

Home

English

Česky

Deutsch

Ελληυικά

Français

Italiano

Nederlands

Polski

Português

Русский

Español

Suomi

Svenska


Novitą

Archivio

Introduzione

Stato
Foto
Porting
Licenza

Download


Documentazione

Utenti
Installazione
Come si usa
Comandi shell
Applications
FAQ
Sviluppatori
Per contribuire
Roadmap
Bug Tracker
Lavorare con Subversion
Compilare
Manuale Sviluppo Applicazioni
Manuale Sviluppo Applicazioni Zune
Manuale Sviluppo Sistema
Manuale Debugging
Riferimenti
Specifiche
Guida stili UI
Documentazione
Porting
Traduzione
Sommari
Links

Contatti

Mailing list
Canali IRC

Riconoscimenti

Acknowledgements


Immagini

Sviluppatori
Ciurma degli sviluppatori

Sponsor

Collegamenti

Links

Get AROS Research Operating System at SourceForge.net. Fast, secure and Free Open Source software downloads

FailAt

Index Prev Next


Name

FailAt

Format

FailAt <limit>

Synopsis

RCLIM/N

Function

FailAt sets the return code limit of the current shell script. If
any command returns with a failure code of this value or higher
the script shall abort.

Common failure codes are:
    0   - No error
    5   - Warning
    10  - Error
    20  - Failure

The normal value for the return code limit is 10.

Example

If we have a script with the commands

    Copy RAM:SomeFile DF0:
    Echo "Done!"

and the file RAM:SomeFile does not exist, the Copy command will
return with:

    Copy: object not found
    Copy: returned with error code 20

and the script will abort. However if you include the command

    FailAt 21

then the script will complete since the return code from Copy is
less than the return code limit.

Copyright © 1995-2009, The AROS Development Team. Tutti i diritti riservati.
Amiga® č un marchio registrato di Amiga Inc. Tutti i diritti sui marchi vanno ai legittimi proprietari.