| 1 | <HTML> |
| 2 | <HEAD> |
| 3 | <STYLE type="text/css"> |
| 4 | H1 {color: black } |
| 5 | H2 {color: maroon } |
| 6 | H3 {color: #007090 } |
| 7 | A.head:link {color: #0060a0 } |
| 8 | A.head:visited {color: #3040c0 } |
| 9 | A.head:active {color: white } |
| 10 | A.head:hover {color: yellow } |
| 11 | A.red:link {color: red } |
| 12 | A.red:visited {color: maroon } |
| 13 | A.red:active {color: yellow } |
| 14 | </STYLE> |
| 15 | </HEAD> |
| 16 | <TITLE>Magic-7.3 Command Reference</TITLE> |
| 17 | <BODY BACKGROUND=graphics/blpaper.gif> |
| 18 | <H1> <IMG SRC=graphics/magic_title2.gif ALT="Magic VLSI Layout Tool Version 7.3"> |
| 19 | <IMG SRC=graphics/magic_OGL_sm.gif ALIGN="top" ALT="*"> </H1> |
| 20 | |
| 21 | <H2>shell</H2> |
| 22 | <HR> |
| 23 | Execute a command in a UNIX subshell |
| 24 | <HR> |
| 25 | |
| 26 | <H3>Usage:</H3> |
| 27 | <BLOCKQUOTE> |
| 28 | <B>shell</B> [<I>command</I>] <BR><BR> |
| 29 | <BLOCKQUOTE> |
| 30 | where <I>command</I> is a valid UNIX command-line command. |
| 31 | </BLOCKQUOTE> |
| 32 | </BLOCKQUOTE> |
| 33 | |
| 34 | <H3>Summary:</H3> |
| 35 | <BLOCKQUOTE> |
| 36 | The <B>shell</B> command allows UNIX commands to be executed from |
| 37 | the magic command line. This use is superceded by the Tcl |
| 38 | interpreter, which executes shell commands directly from the |
| 39 | interpreter prompt. Differences between the two uses is noted |
| 40 | below. |
| 41 | </BLOCKQUOTE> |
| 42 | |
| 43 | <H3>Implementation Notes:</H3> |
| 44 | <BLOCKQUOTE> |
| 45 | <B>shell</B> is implemented as a built-in command in <B>magic</B>. |
| 46 | This is similar to the Tcl interpreter execution of shell commands |
| 47 | directly from the Tcl command-line. The primary difference is that |
| 48 | results from the shell interpreter are printed to the calling |
| 49 | terminal with <B>shell</B>, and are printed to the console when |
| 50 | invoked directly from Tcl. For example, note the difference in |
| 51 | the output target for: |
| 52 | <BLOCKQUOTE> |
| 53 | <B>ls -l</B> <PRE> </PRE> <I>vs.</I><BR> |
| 54 | <B>shell ls -l</B> |
| 55 | </BLOCKQUOTE> |
| 56 | </BLOCKQUOTE> |
| 57 | |
| 58 | <P><IMG SRC=graphics/line1.gif><P> |
| 59 | <TABLE BORDER=0> |
| 60 | <TR> |
| 61 | <TD> <A HREF=commands.html>Return to command index</A> |
| 62 | </TR> |
| 63 | </TABLE> |
| 64 | <P><I>Last updated:</I> October 8, 2004 at 3:55am <P> |
| 65 | </BODY> |
| 66 | </HTML> |