Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 37ce2601040f8edc2329d4714238376a > files > 825

eso-midas-doc-13SEPpl1.2-3.mga5.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Execution of Commands</TITLE>
<META NAME="description" CONTENT="Execution of Commands">
<META NAME="keywords" CONTENT="vol1">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="vol1.css">
<LINK REL="next" HREF="node38.html">
<LINK REL="previous" HREF="node31.html">
<LINK REL="up" HREF="node22.html">
<LINK REL="next" HREF="node38.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html945"
 HREF="node38.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html941"
 HREF="node22.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html935"
 HREF="node36.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html943"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A> 
<A NAME="tex2html944"
 HREF="node216.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="icons.gif/index_motif.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html946"
 HREF="node38.html">MIDAS Command Language</A>
<B> Up:</B> <A NAME="tex2html942"
 HREF="node22.html">Monitor and Command Language</A>
<B> Previous:</B> <A NAME="tex2html936"
 HREF="node36.html">Input/Output Redirection in Midas</A>
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION00650000000000000000">&#160;</A> 
<A NAME="execution-of-commands">&#160;</A>
<BR>
Execution of Commands
</H1>

<P>
MIDAS commands fall into two categories:
the <I>basic</I> commands and all other <I>application</I>
commands. The <I>basic</I> commands are executed inside the MIDAS monitor, which
is the program you are interacting with.
All other commands are implemented by executing a MIDAS procedure<A NAME="1783">&#160;</A> which
runs one or more programs in a subprocess (child process).
During the time  a command is being processed in the subprocess,
the MIDAS
monitor is suspended until the corresponding program terminates in the
subprocess. Only then control is returned to the user. To stop a
command prematurely, type 
<!-- MATH: $\fbox{\tt Ctrl/C}$ -->
<IMG
 WIDTH="83" HEIGHT="31" ALIGN="BOTTOM" BORDER="0"
 SRC="img31.gif"
 ALT="\fbox{\tt Ctrl/C}">.
<BR>
&nbsp;&nbsp;
<BR>
Since process creation is much more expensive in VMS than in Unix
these subprocesses are handled differently in VMS and Unix: <BR>
In VMS, the subprocess, named FORGRxy (with <TT>xy</TT> the MIDAS unit specified at
start-up), is created at MIDAS initialisation 
time and kept alive until you exit from MIDAS via the command <TT>BYE</TT>. <BR>
In Unix, the 
child process is created each time the MIDAS command executes an
application program.
Upon termination of that program the child process dies.
This also applies to commands of the host system - they are executed
in a subshell.
<BR>
Therefore, issuing <TT>`$ cd /elsewhere'</TT> inside MIDAS does not change
your current directory permanently... You should  use the MIDAS command 
<TT>CHANGE/DIRECTORY</TT> instead. See section 
<A HREF="node23.html#starting-the-midas-monitor">3.1</A> about the <I>change-directory</I> problem. <BR>
&nbsp;&nbsp;
<BR>
Some internal files are created when starting a MIDAS session in the directory
specified via <TT>MID_WORK:</TT>. The most important ones are the
<I>keyword file</I> and the <I>logfile</I>.
<BR>
The  <I>keyword file</I><A NAME="1794">&#160;</A> is named <TT>FORGRxy.KEY</TT> (<TT>xy</TT> the MIDAS unit)
     and holds the keyword data
    base accessible by all programs running in the MIDAS environment. <BR>
The  <I>logfile</I><A NAME="1798">&#160;</A> is named <TT>FORGRxy.LOG</TT> and receives a log of all user
    input and all MIDAS output
    on the terminal (except HELP text, as explained before, and output
    from the host system).
The <I>logfile</I> serves also as a ``fall back'' utility in case of system crash
    or other breakdown. In such a case the command <TT>PLAYBACK/LOG `logfile'</TT>
    may be used to regenerate the complete MIDAS session.

<P>
<BLOCKQUOTE>
<DIV ALIGN="CENTER">
<B>Note</DIV>
<I>In order to use the playback facility, you have to rename the
  original logfile 
  before restarting MIDAS via <TT>INMIDAS</TT> or <TT>inmidas</TT>.
Remember that INMIDAS deletes old MIDAS logfiles unless you run in
<TT>parallel</TT> mode<A NAME="1806">&#160;</A>.</I></B></BLOCKQUOTE>
<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html945"
 HREF="node38.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="icons.gif/next_motif.gif"></A> 
<A NAME="tex2html941"
 HREF="node22.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="icons.gif/up_motif.gif"></A> 
<A NAME="tex2html935"
 HREF="node36.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html943"
 HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="icons.gif/contents_motif.gif"></A> 
<A NAME="tex2html944"
 HREF="node216.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="icons.gif/index_motif.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html946"
 HREF="node38.html">MIDAS Command Language</A>
<B> Up:</B> <A NAME="tex2html942"
 HREF="node22.html">Monitor and Command Language</A>
<B> Previous:</B> <A NAME="tex2html936"
 HREF="node36.html">Input/Output Redirection in Midas</A>
<!--End of Navigation Panel-->
<ADDRESS>
<I>Petra Nass</I>
<BR><I>1999-06-09</I>
</ADDRESS>
</BODY>
</HTML>