[Eisfair] capi2text-kde-udp-listen.pl Fehler
Holger Bruenjes
holgerbruenjes at gmx.net
Fr Jan 24 17:14:05 CET 2020
Hallo Kay
Am 24/01/2020 um 16.46 schrieb Kay Martinen:
> Da ich jetzt Ubuntu 18.04 statt Windows 7 einsetze und auch KDE wollte
> ich dies mitgelieferte Script mal probieren. Ich erhoffe mir davon eine
> umgehende Desktop-Nachricht wenn ein Anruf rein kommt.
funktioniert eigentlich bei mir
> In der Doku fand ich die location des scripts, kopierte dies auf meinen
> PC, schob es nach /usr/bin und hab es lt. anleitung so geändert das es
^^^^^^^^^^
> an meinen lokalen usernamen adressiert und es; als root; gestartet.
>
> Doch dann kommt:
>> oot at lifebook:/usr/sbin# ./capi2text-kde-udp-listen.pl &
^^^^^^^
was denn nun /usr/sbin oder /usr/bin
>> [1] 21480
>> root at lifebook:/usr/sbin# given is experimental at ./capi2text-kde-udp-listen.pl line 68.
>> when is experimental at ./capi2text-kde-udp-listen.pl line 69.
>> when is experimental at ./capi2text-kde-udp-listen.pl line 78.
>> Global symbol "$port" requires explicit package name (did you forget to declare "my $port"?) at ./capi2text-kde-udp-listen.pl line 37.
>> Global symbol "$port" requires explicit package name (did you forget to declare "my $port"?) at ./capi2text-kde-udp-listen.pl line 42.
>> Execution of ./capi2text-kde-udp-listen.pl aborted due to compilation errors.
wie stehen denn die Paramter oben in dem Skript
# parameter
my $output_user = 'user'; # su-user to switch to
my $output_display = ':0'; # unix display
my $output_desktop = 'kde'; # desktop to use: kde or gnome
my $port = '5555'; # port number
my $proto = 'udp'; # protocol
my $msg_timeout = 30; # time in seconds
my $debug = 0; #
debug: 0/1
>
> Ich fand raus das offenbar perl5 mit einigen libs installiert ist und
> perl6 verfügbar ist. Liegt es daran oder ist das script evtl. noch älter?
vergiss perl6
Du solltest das Skript auch nicht von Hand starten, systemd hin oder
her ich habe es in
/etc/init.d/capi2txt
#! /bin/sh
#-------------------------------------------------------------------------------
#
# /etc/init.d/capi2txt
#
# 2010-04-08 HB
#
#------------------------------------------------------------------------------
### BEGIN INIT INFO
# Provides: capi2txt
# Required-Start: $network $netdaemons
# Required-Stop: $network $netdaemons
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start capi2txt
### END INIT INFO
case $1 in
start)
/usr/sbin/capi2text-kde-udp-listen.pl &
;;
stop)
killall capi2text-kde-udp-listen.pl
;;
esac
und nach
/etc/init.d/rc5.d
verlinkt
Holger
Mehr Informationen über die Mailingliste Eisfair