terminal app in KDE

Pagina: 1
Acties:

  • djack
  • Registratie: September 2002
  • Laatst online: 11-11-2024
Ik heb hier een cobol app die ik start via een start script.
Onderstaande script start een kassa app in een term windowke ... nu lijkt het dat er bepaalde toetsen de mogelijkheid geven om in de achterliggende shell te komen ... of de process manager,... ik weet gij god niets welke ma is er een slimme manier om dit te voorkomen?
tis niet de bedoeling dat ze ineens in een shell windowke tuimelen ...


code:
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
# Modified by RFC 1.1.SJ
#!/bin/bash
#PC KASSA START SCRIPT ON MAIN CASH REGISTER
#This script starts the Konsole window in the KDE desktop.
#It will also check if the script is only running once.
#Created by Sven Jacobs
#Version 0.1
#Date 16/12/04


#check lockfile to make sure that we only can start one main register
#if lockfile doesn't exist start main register and make log entry
#if lockfile exist exit script and make log entry
#when you stop the application the script will remove lockfile and write log enty
#lockfile location = /tmp/pckassa/kassastart.lock
#logfile location = /var/log/pckassa/mainregister.log
#logfile DATE&TIME PID USER ENTY


if [ -f /tmp/pckassa/mainstart.lock ]; then
        export DISPLAY=:0.0
        kdialog --error "The pc kassa application is still running call the ICT
Servicedesk"  --title "PC KASSA"

        echo $(date) $$ $(whoami) "The main register application is already running" >> /var/log/pckassa/mainregister.log
exit 1


else
        touch /tmp/pckassa/mainstart.lock
        echo $(date) $$ $(whoami) "Starting the main register application" >> /var/log/pckassa/mainregister.log
        konsole --T  "PC KASSA" --noresize --notabbar --nomenubar --noscrollbar --tn xterm --keytab x11r5 --schema WhiteOnBlack.schema  --e /usr/fjs/dsc

fi
        rm /tmp/pckassa/mainstart.lock
        echo $(date) $$ $(whoami) "End of main register application" >>  /var/log/pckassa/mainregister.log

Because Great minds Think alike