Debian Codegraph @

doc/html/fmtxfbb.htm

raw
1 <HTML>
2 <HEAD>
3 <TITLE>Format of XFBB.SH</TITLE>
4 </HEAD>
5 <BODY BACKGROUND="/back_fbb.jpg">
6 <P>
7 <IMG SRC="/fbb.gif" WIDTH="32" HEIGHT="32">
8 <H1 ALIGN=Center>
9 XFBB.SH
10 </H1>
11 <P ALIGN=Center>
12 <FONT COLOR="#ff0000"><B>Only for LinFBB !</B></FONT>
13 <P>
14 <IMG SRC="../construction3.gif" WIDTH="49" HEIGHT="43">
15 <FONT COLOR="#800000">This page is under construction !</FONT>
16 <PRE>
17
18 <B><BIG>XFBB.SH (/usr/local/fbb)</BIG></B>
19
20
21 This is the very first file that LinFBB will use. You will find it in
22 /usr/local/fbb-directory. (or in that directory you chosen when you installed
23 LinFBB). You don't really need to do any changes in this file, unless you did
24 some changes during the installation-process. If you did, you must change
25 the pathnames in LinFBB.SH exactly the same as you did during the installation.
26 This is very important ! So look for the lines that I have marked with
27 an &lt;--- below.
28
29 This file is used to start both the deamon version and X-Windows version of
30 LinFBB, to start the deamon version you should type: ./xfbb.sh -d &amp;
31 in X-Windows xterm you should start LinFBB with: ./xfbb.sh
32
33 You must go to the LinFBB root directory before executing this shell
34 script.
35
36
37 #!/bin/bash
38 #
39 # Shell file to LinFBB software
40 #
41 # F6FBB 1996
42 #
43 #
44 # Base directory of LinFBB software
45 XFBBDIR=/usr/local/xfbb &lt;---
46
47 #
48 # Add local PATH
49 PATH=$XFBBDIR/bin:$PATH
50
51 #
52 # Export resource file
53 XAPPLRESDIR=$XFBBDIR/res
54
55 export XFBBDIR PATH XAPPLRESDIR
56
57 end_session()
58 {
59 echo "Session of LinFBB is ended"
60 exit 0;
61 }
62
63 maintenance()
64 {
65 echo "Running maintenance"
66 sleep 2
67 $XFBBDIR/bin/epurmess &gt; /dev/null 2&gt;&amp;1 &lt;---
68 $XFBBDIR/bin/epurwp 40 90 &gt; /dev/null 2&gt;&amp;1 &lt;---
69 }
70
71 rerun()
72 {
73 echo "Re-running LinFBB"
74 sleep 2
75 }
76
77 error_return()
78 {
79 echo "Unknown return value $1"
80 sleep 10
81 }
82
83 if [ "_$1" = "_-d" ]
84 then
85 XFBB=xfbbd
86 shift
87 else
88 XFBB=xfbb
89 fi
90
91 PARAM=$*
92
93 while [ 1 ]
94 do
95
96 cd $XFBBDIR &lt;---
97
98 echo
99 echo "Running LinFBB ^C to abort"
100 sleep 3
101
102 echo "Starting LinFBB ..."
103 $XFBB $PARAM &lt;---
104
105 ret=$?
106 echo
107 case $ret in
108 1) end_session ;;
109 2) rerun;;
110 3) maintenance;;
111 *) error_return $ret;;
112 esac
113
114 done
115
116
117
118
119 <A HREF="doc.htm"><IMG SRC="/contents.gif" WIDTH="108" HEIGHT="28"></A>
120
121 <A HREF="/"><IMG SRC="../button_home.gif" WIDTH="90" HEIGHT="29"></A>
122
123 <FONT COLOR="#800000">This page was last updated <!--#config timefmt="%d-%b-%y"--><!--#echo var="LAST_MODIFIED"--></FONT>
124
125 </PRE>
126 </BODY></HTML>