
Hallo OTRS-Community, habe in Anlehnung an das Modul PendingCheck.pm ein neues Console-Command FAQValidCheck.pm erstelt. Dieses Modul liegt im Verzeichnis: /Kernel/System/Console/Command/Maint/FAQ Ich wollte dieses Modul nun testweise auf der Konsole ausführen und hab Fehlermeldungen in die Datei: FAQValidCheck.txt schreiben lassen. Auszug aus FAQValidCheck.txt Compilation failed in require at /opt/otrs/Kernel/System/ObjectManager.pm line 254. at /opt/otrs/Kernel/System/Console/Command/List.pm line 53. List.pm: for my $Command ( $Self->ListAllCommands() ) { Line 53: my $CommandObject = $Kernel::OM->Get($Command); my $CommandName = $CommandObject->Name(); # Group by toplevel namespace my ($CommandNamespace) = $CommandName =~ m/^([^:]+)::/smx; $CommandNamespace //= ''; if ( $CommandNamespace ne $PreviousCommandNameSpace ) { $UsageText .= "<yellow>$CommandNamespace</yellow>\n"; $PreviousCommandNameSpace = $CommandNamespace; } Muss ich das Command-Modul noch im System registrieren? Ein bin/otrs.Console.pl Maint::Config::Rebuild hat leider nichts gebracht. Wenn ich das Modul ausführen möchte erhalte ich nun die Fehlermeldung: Error: Could not find Kernel::System::Console::Command::Maint::FAQ::FAQValidCheck. Vielen Dank Gruß Sepp

Hallo Sepp, was ganz Dummes: hast Du das erste Statement in Deinem Package richtig gesetzt, oder steht dort immer noch ...::PendingCheck? Grüße Martin -----Ursprüngliche Nachricht----- Von: otrs-de <otrs-de-bounces@lists.otrs.org> Im Auftrag von Josef Penzkofer Gesendet: Freitag, 8. Januar 2021 11:55 An: otrs-de@otrs.org Betreff: [otrs-de] Neues Console-Command Hallo OTRS-Community, habe in Anlehnung an das Modul PendingCheck.pm ein neues Console-Command FAQValidCheck.pm erstelt. Dieses Modul liegt im Verzeichnis: /Kernel/System/Console/Command/Maint/FAQ Ich wollte dieses Modul nun testweise auf der Konsole ausführen und hab Fehlermeldungen in die Datei: FAQValidCheck.txt schreiben lassen. Auszug aus FAQValidCheck.txt Compilation failed in require at /opt/otrs/Kernel/System/ObjectManager.pm line 254. at /opt/otrs/Kernel/System/Console/Command/List.pm line 53. List.pm: for my $Command ( $Self->ListAllCommands() ) { Line 53: my $CommandObject = $Kernel::OM->Get($Command); my $CommandName = $CommandObject->Name(); # Group by toplevel namespace my ($CommandNamespace) = $CommandName =~ m/^([^:]+)::/smx; $CommandNamespace //= ''; if ( $CommandNamespace ne $PreviousCommandNameSpace ) { $UsageText .= "<yellow>$CommandNamespace</yellow>\n"; $PreviousCommandNameSpace = $CommandNamespace; } Muss ich das Command-Modul noch im System registrieren? Ein bin/otrs.Console.pl Maint::Config::Rebuild hat leider nichts gebracht. Wenn ich das Modul ausführen möchte erhalte ich nun die Fehlermeldung: Error: Could not find Kernel::System::Console::Command::Maint::FAQ::FAQValidCheck. Vielen Dank Gruß Sepp --------------------------------------------------------------------- OTRS mailing list: otrs-de - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs-de To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs-de

Hallo Martin, da stehtnatürlich ;-) : package Kernel::System::Console::Command::Maint::FAQ::FAQValidCheck; Gruß Sepp
Vorländer, Martin <MV@pdv-systeme.de> 08.01.2021 12:47 >>> Hallo Sepp,
was ganz Dummes: hast Du das erste Statement in Deinem Package richtig gesetzt, oder steht dort immer noch ...::PendingCheck? Grüße Martin ‑‑‑‑‑Ursprüngliche Nachricht‑‑‑‑‑ Von: otrs‑de <otrs‑de‑bounces@lists.otrs.org> Im Auftrag von Josef Penzkofer Gesendet: Freitag, 8. Januar 2021 11:55 An: otrs‑de@otrs.org Betreff: [otrs‑de] Neues Console‑Command Hallo OTRS‑Community, habe in Anlehnung an das Modul PendingCheck.pm ein neues Console‑Command FAQValidCheck.pm erstelt. Dieses Modul liegt im Verzeichnis: /Kernel/System/Console/Command/Maint/FAQ Ich wollte dieses Modul nun testweise auf der Konsole ausführen und hab Fehlermeldungen in die Datei: FAQValidCheck.txt schreiben lassen. Auszug aus FAQValidCheck.txt Compilation failed in require at /opt/otrs/Kernel/System/ObjectManager.pm line 254. at /opt/otrs/Kernel/System/Console/Command/List.pm line 53. List.pm: for my $Command ( $Self‑>ListAllCommands() ) { Line 53: my $CommandObject = $Kernel::OM‑>Get($Command); my $CommandName = $CommandObject‑>Name(); # Group by toplevel namespace my ($CommandNamespace) = $CommandName =~ m/^([^:]+)::/smx; $CommandNamespace //= ''; if ( $CommandNamespace ne $PreviousCommandNameSpace ) { $UsageText .= "<yellow>$CommandNamespace</yellow>\n"; $PreviousCommandNameSpace = $CommandNamespace; } Muss ich das Command‑Modul noch im System registrieren? Ein bin/otrs.Console.pl Maint::Config::Rebuild hat leider nichts gebracht. Wenn ich das Modul ausführen möchte erhalte ich nun die Fehlermeldung: Error: Could not find Kernel::System::Console::Command::Maint::FAQ::FAQValidCheck. Vielen Dank Gruß Sepp ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ OTRS mailing list: otrs‑de ‑ Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs‑de To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs‑de

Hallo Sepp, kannst Du mal perl -I. -IKernel/cpan-lib -cw Kernel/System/Console/Command/Maint/FAQ/FAQValidCheck.pm machen? Gruß Renée

Hallo Renée, daraufhin erhalte ich die Meldung: Can't open perl script "Kernel/System/Console/Command/Maint/FAQ/FAQValidCheck": No such file or directory Die Datei FAQValidCheck.pm existiert aber im entsprechenden Verzeichnis. Gruß Sepp
<otrs.list@perl-services.de> 08.01.2021 14:05 >>> Hallo Sepp,
kannst Du mal perl ‑I. ‑IKernel/cpan‑lib ‑cw Kernel/System/Console/Command/Maint/FAQ/FAQValidCheck.pm machen? Gruß Renée ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ OTRS mailing list: otrs‑de ‑ Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs‑de To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs‑de

Hast Du das als "otrs" aus dem Verzeichnis "/opt/otrs" (oder was auch immer bei Dir das Home-Verzeichnis der OTRS-Installation ist) gemacht? Was gibt ein find / -type f -name FAQValidCheck.pm (das kann etwas länger dauern)? Gruß Renée Am 08.01.21 um 14:37 schrieb Josef Penzkofer:
Hallo Renée,
daraufhin erhalte ich die Meldung: Can't open perl script "Kernel/System/Console/Command/Maint/FAQ/FAQValidCheck": No such file or directory
Die Datei FAQValidCheck.pm existiert aber im entsprechenden Verzeichnis.
Gruß
Sepp

Nein, ich hab's natürlich nicht als otrs gemacht ;-) Jetzt bekomm ich noch einige Fehlermeldungen über Syntaxfehler in dem Modul, aber anscheinend wird es zumindest gefunden.
<otrs.list@perl-services.de> 08.01.2021 14:41 >>> Hast Du das als "otrs" aus dem Verzeichnis "/opt/otrs" (oder was auch immer bei Dir das Home‑Verzeichnis der OTRS‑Installation ist) gemacht?
Was gibt ein find / ‑type f ‑name FAQValidCheck.pm (das kann etwas länger dauern)? Gruß Renée Am 08.01.21 um 14:37 schrieb Josef Penzkofer:
Hallo Renée,
daraufhin erhalte ich die Meldung: Can't open perl script "Kernel/System/Console/Command/Maint/FAQ/FAQValidCheck": No such file or directory
Die Datei FAQValidCheck.pm existiert aber im entsprechenden Verzeichnis.
Gruß
Sepp
‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ OTRS mailing list: otrs‑de ‑ Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs‑de To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs‑de

Moin nochmal! Wenn die Fehlermeldung korrekt ist, hast Du beim perl-Aufruf das ".pm" vergessen. Viele Grüße Martin -----Ursprüngliche Nachricht----- Von: otrs-de <otrs-de-bounces@lists.otrs.org> Im Auftrag von Josef Penzkofer Gesendet: Freitag, 8. Januar 2021 14:38 An: otrs-de@lists.otrs.org Betreff: [otrs-de] Antw: Re: Antw: [EXT] Re: Neues Console-Command Hallo Renée, daraufhin erhalte ich die Meldung: Can't open perl script "Kernel/System/Console/Command/Maint/FAQ/FAQValidCheck": No such file or directory Die Datei FAQValidCheck.pm existiert aber im entsprechenden Verzeichnis. Gruß Sepp
<otrs.list@perl-services.de> 08.01.2021 14:05 >>> Hallo Sepp,
kannst Du mal perl ‑I. ‑IKernel/cpan‑lib ‑cw Kernel/System/Console/Command/Maint/FAQ/FAQValidCheck.pm machen? Gruß Renée ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ OTRS mailing list: otrs‑de ‑ Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs‑de To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs‑de --------------------------------------------------------------------- OTRS mailing list: otrs-de - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs-de To unsubscribe: http://lists.otrs.org/mailman/listinfo/otrs-de
participants (3)
-
Josef Penzkofer
-
otrs.list@perl-services.de
-
Vorländer, Martin