Skip to main content
  • Home
  • Documentation
  • FAQ
  • Downloads
  • Support
  • Current Release Notes
  • Ferret Users Guide
    • Users Guide Index
    • Commands Reference
    • 1. Introduction
    • 2. Data Set Basics
    • 3. Variables & Expressions
    • 4. Grids & Regions
    • 5. Animations & Gif Images
    • 6. Customizing Plots
    • 7. Handling String Data Symbols
    • 8. Working with Special Data Sets
    • 9. Computing Environment
    • 10. Converting to NetCDF
    • 11. Writing External Functions
    • Glossary
    • Appendix A: Functions
    • Appendix B: PPLUS Guide
    • Appendix C: Ferret-Specific PPLUS Enhancements
  • Previous Release Notes
  • Tutorials and Demos
    • Ferret Tour
    • DSG files: Discrete Sampling Geometries Demo
    • Ferret sorting demo
    • Fast Fourier Transforms demo
    • Empirical Orthogonal Functions demo
    • Ferret objective analysis demo
    • Ferret Palette Demo
    • Map projections
    • Ferret polygon vector demo
    • Ferret Graticules demo
    • Ferret Polytube Demo
    • Ferret Polymark Demo
    • Ferret Constant-Array demo
    • Ferret land_detail demo
    • COADS Tour
    • Levitus Tour
    • Use OPeNDAP
    • Ferret binary read demo
  • PyFerret
    • PyFerret Downloads and Install ../../faq/ferret-faqs.html
    • What is PyFerret?
    • Why use PyFerret?
    • PyFerret for the Ferret user
    • PyFerret command syntax: quick-start notes
    • PyFerret for the Python user
    • Graphics in PyFerret ?
    • New Ferret functionality
    • PyFerret Python functions and constants
    • PyFerret Python objects and methods
    • Ferret external functions in Python
    • Ferret Fortran external functions
    • PyFerret metadata-and-data dictionaries
  • OPeNDAP
    • OPeNDAP usage in Ferret
    • Use OPeNDAP Demo
    • Test OPeNDAP

EXIT

 

/LOOP /SCRIPT /PROMPT /PROGRAM /COMMAND /CYCLE

PyFerret Only:  /TOPYTHON

 

Without a qualifier, when issued interactively and without a qualifier EXIT terminates program Ferret. When executed within a command file, EXIT terminates the execution of the command file and returns control to the level in Ferret that executed the file (the user or another command file).

"QUIT" in a command file is an alias for EXIT without a qualifier. It will exit the current script, or the program if you are at the Ferret prompt.

Command qualifiers for EXIT:

EXIT/LOOP

When executed from within a REPEAT loop, Ferret will stop execution of that loop and return to the level in Ferret which executed the loop.

EXIT/CYCLE

When executed from within a REPEAT loop, Ferret will skip the remaining commands in the loop and continue at the start of the next repetition of the loop.

EXIT/SCRIPT

When executed from within a script, this command will terminate the execution of that script and return control to the level in Ferret which executed the script (either the user or another command file).

EXIT/PROMPT

When executed at any point, either in a script or loop, this command will immediately terminate execution and Ferret will return to the"yes?" prompt and return control to the user.

EXIT/PROGRAM

EXIT/COMMAND_FILE

When executed from within a command file EXIT/COMMAND_FILE or EXIT/PROGRAM forces an immediate exit from Ferret without returning control to the user or another command file.

PyFerret only

EXIT/TOPYTHON
Exits the Ferret command-line interface and returns to the Python interface. To return to the Ferret command-line interface, enter pyferret.run() at the Python prompt.