File: intro-6.html

package info (click to toggle)
linuxconf 1.26r4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 56,432 kB
  • ctags: 27,217
  • sloc: cpp: 158,803; perl: 7,484; sh: 4,134; java: 3,105; ansic: 2,492; makefile: 2,216; python: 109
file content (36 lines) | stat: -rw-r--r-- 1,377 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>shellmod: Script process life</TITLE>
 <LINK HREF="intro-7.html" REL=next>
 <LINK HREF="intro-5.html" REL=previous>
 <LINK HREF="intro.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="intro-7.html">Next</A>
<A HREF="intro-5.html">Previous</A>
<A HREF="intro.html#toc6">Contents</A>
<HR>
<H2><A NAME="s6">6. Script process life</A></H2>

<P>Shellmod and Linuxconf will start the script whenever it is needed. Used
as a Linuxconf module, the script is not started at Linuxconf startup
but only when one of its menu or co-manager entries are selected.
<P>The script is start and proceed to its dispatch function, where it
waits for request. Some request triggers the execution of one
of the script's function. When the function done, the original
dispatch function resume and continue to wait. Note that dispatch
may be used recursively.
<P>Once started, the script sits there waiting for request until Linuxconf
end. As such it can be seen as a small server sharing information
collected while performing various request.
<P>When used as a stand-alone utility, the script will end as soon as its
main function exits.
<P>
<HR>
<A HREF="intro-7.html">Next</A>
<A HREF="intro-5.html">Previous</A>
<A HREF="intro.html#toc6">Contents</A>
</BODY>
</HTML>