File: fmtxfbb.htm

package info (click to toggle)
fbbdoc 1999
  • links: PTS
  • area: main
  • in suites: woody
  • size: 768 kB
  • ctags: 52
  • sloc: makefile: 29; sh: 14
file content (117 lines) | stat: -rw-r--r-- 2,371 bytes parent folder | download | duplicates (5)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Format of XFBB.SH</title>
</head>
 <body background="/back_fbb.jpg">
 
<h1 align="Center">   XFBB.SH </h1>
 
<p align="Center"> <font color="#ff0000"><b>Only for LinFBB !</b></font> </p>
<p> &nbsp; <font color="#800000">This page is under construction !</font>
 </p>
<pre>
<b><big>XFBB.SH (/usr/local/fbb)</big></b>


This is the very first file that LinFBB will use. You will find it in 
/usr/local/fbb-directory. (or in that directory you chosen when you installed
LinFBB).  You don't really need to do any changes in this file, unless you did
some changes during the installation-process.  If you did, you must change 
the pathnames in LinFBB.SH exactly the same as you did during the installation.
This is very important ! So look for the lines that I have marked with 
an     &lt;---      below.

This file is used to start both the deamon version and X-Windows version of 
LinFBB, to start the deamon version you should type: ./xfbb.sh -d &amp;
in X-Windows xterm you should start LinFBB with: ./xfbb.sh

You must go to the LinFBB root directory before executing this shell
script.


#!/bin/sh
#
# Shell file to LinFBB software
#
# F6FBB 1996
#
#
# Base directory of LinFBB software
XFBBDIR=/usr/local/xfbb               &lt;---

#
# Add local PATH
PATH=$XFBBDIR/bin:$PATH

#
# Export resource file
XAPPLRESDIR=$XFBBDIR/res

export XFBBDIR PATH XAPPLRESDIR

end_session()
{
  echo "Session of LinFBB is ended"
  exit 0;
}

maintenance()
{
  echo "Running maintenance"
  sleep 2
  $XFBBDIR/bin/epurmess &gt; /dev/null 2&gt;&amp;1           &lt;---
  $XFBBDIR/bin/epurwp 40 90 &gt; /dev/null 2&gt;&amp;1       &lt;---
}

rerun()
{
  echo "Re-running LinFBB"
  sleep 2
}

error_return()
{
  echo "Unknown return value $1"
  sleep 10
}

if [ "_$1" = "_-d" ]
then
  XFBB=xfbbd
  shift
else
  XFBB=xfbb
fi

PARAM=$*

while [ 1 ]
  do

    cd $XFBBDIR                          &lt;---

    echo
    echo "Running LinFBB ^C to abort"
    sleep 3

    echo "Starting LinFBB ..."
    $XFBB $PARAM                         &lt;---
    
    ret=$?
    echo
    case $ret in
      1) end_session ;;
      2) rerun;;
      3) maintenance;;
      *) error_return $ret;;
    esac
    
done&nbsp;&nbsp;

<font color="#800000">This page was last updated 17-Apr-99</font>

</pre>
 
</body>
</html>