File: unix.html

package info (click to toggle)
erlang-doc-html 1%3A8.0-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 18,028 kB
  • ctags: 7,419
  • sloc: perl: 1,841; ansic: 323; erlang: 155
file content (45 lines) | stat: -rw-r--r-- 1,270 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<HTML>
<HEAD>
<!-- refpage -->
<TITLE>unix</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<CENTER>


<A HREF="http://www.erlang.se"><IMG BORDER=0 ALT="[Erlang Systems]" SRC="min_head.gif"></A>
<H1>unix</H1>
</CENTER>
<H3>MODULE</H3>
<UL>
unix</UL>
<H3>MODULE SUMMARY</H3>
<UL>
Calls to the UNIX Shell</UL>
<H3>DESCRIPTION</H3>
<UL>
<P>This module makes it possible to make calls to the UNIX shell. 
The shell used is <CODE>/bin/sh</CODE>, so the environment might be 
different to the one you commonly use. C shell expansions cannot 
be used. The module is extremely easy to use and there is only one function. 
<P>Note that most UNIX commands produce a trailing new line.
</UL>
<H3>EXPORTS</H3>
<P><A NAME="cmd%1"><STRONG><CODE>cmd(String) </CODE></STRONG></A><BR>
<UL>
<P>Makes the call <CODE>String</CODE> to <CODE>sh</CODE> and returns the answer in a list of characters.<P>Example: (bizarre version of ls)<PRE>1&#62; unix:cmd(&#34;for i in *; do echo $i; done&#34;).</PRE>
</UL>
<H3>AUTHORS</H3>
<UL>
 Claes Wikstrom - support@erlang.ericsson.se<BR>
</UL>
<CENTER>
<HR>
<FONT SIZE=-1>stdlib 1.10<BR>
Copyright &copy; 1991-2001
<A HREF="http://www.erlang.se">Ericsson Utvecklings AB</A><BR>
<!--#include virtual="/ssi/otp_footer.html"-->
</FONT>
</CENTER>
</BODY>
</HTML>