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


next up previous contents index
Next: misc - Constructor Up: misc - Module Previous: misc - Module


misc - Tool



Package utility
Module misc


Postscript file available

Misc tool


Description
The misc tool contains a number of string, file, and miscellaneous functions.

NOTE Some (limited) functions emulating C-based input and output routines are available. These have been replaced by functions native to Glish. We strongly recommend that you use the Glish functions instead.

Some of these functions are implemented completely in Glish without using the gmisc client. They remain in this tool for now. These functions are indicated in the individual descriptions.

This uses a server process misc which is started when first needed and then automatically restarted if it fails (hopefully never!).

Constructors
misc Construct a misc tool
Functions
dir Return the directory for a given directory name
escapespecial escape characters in a string special to the shell
fclose close fileid
fgets interface to fgets
fields list fields in a record or tool
fileexists Does this file exist?
filetype returns the UNIX type of file
fopen interface to c fopen
fprintf C-style formatted output
initspinner start an ascii activity spinner
killspinner kill an ascii activity spinner
listfields Hierarchically list fields in a record
parentdir Return the parent directory
patternmatch Find matching strings using shell expressions
readfile reads a file into a buffer
shellcmd Execute a shell command
stripleadingblanks Strip leading blanks from a string
striptrailingblanks Strip trailing blanks from a string
thisdir Return the name of this directory
tovector Convert variable to a vector
type Returns tool type; ``misc''
[*]  




next up previous contents index
Next: misc - Constructor Up: misc - Module Previous: misc - Module   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