Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: os.type - Function Up: os - Tool Previous: os.mail - Function


os.edit - Function



Package utility
Module misc
Tool os


edit a file


Synopsis
edit(file, editor, async)


Description
This command starts a shell to edit a file. It can only be used in a GUI environment. An editor like vi should not be used, because it does not start up in a separate window. The shell may be synchronous or asynchronous (default). Use the synchronous option if the file is needed immediately.
The default editor is emacs.



Example
  dos.edit ('file.cc');



Arguments

file in file to be edited
    Allowed: string
editor in editor to be used
    Allowed: string
    Default: emacs
async in Run asynchronously
    Allowed: boolean
    Default: T


Returns
T or fail




next up previous contents index
Next: os.type - Function Up: os - Tool Previous: os.mail - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15