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
|
#!/bin/bash
cmd=$(readlink -e $0)
cd $(dirname "$cmd")
if [ $# = 0 ]; then
gnome-terminal --geometry=90x54 \
--tab-with-profile=Black --working-directory=~ -e "$cmd server" \
--title="server" \
--tab-with-profile=Black --working-directory=~ -e "$cmd cli" \
--title="$(basename "$0")" \
--tab-with-profile=Black --working-directory=~ -e "$cmd cli" \
--title="$(basename "$0")" \
--tab-with-profile=Black --working-directory=~ -e "$cmd cli" \
--title="$(basename "$0")" \
--tab-with-profile=Black --working-directory=~ -e "$cmd bash"
else
. ReadX
if [ $1 = server ]; then
while ./MenuVideod.py; do true; done
elif [ $1 = cli ]; then
readOK
while ./MenuSystem; do true; done
elif [ $1 = bash ]; then
bash
else
cmdname=$(basename "$cmd")
echo "usage:"
echo " $cmdname"
echo " start gnome-terminal with default tabs"
echo " $cmdname server"
echo " start server"
echo " $cmdname cli"
echo " start cli"
echo " $cmdname bash"
echo " start bash"
echo " $cmdname help"
echo " show this"
readOK
fi
fi
|