Eine alternative ist noch QJournalctl (hab ich mir Compiliert) aber so richtig toll ist das nicht.
Also hab ich mir was selbst gebastelt.
Ziel: Nach dem Booten soll mir in einem Editor das Ergebnis von sh -c journalctl -b -p3 angezeigt werden.
Mir geht es nur um die Ereignisse mit der Priorität 3(error)
Was nicht funktioniert, das Ergebnis im Editor (z.b. mousepad) anzuzeigen
Script:
Die letzte Zeile (ls -t...) ist erstmal provisorisch, da das Ergebniss ja in einem Editor angezeigt werden soll.
Code: Alles auswählen
#!/bin/bash
# xfce4-terminal "journalctl -b -p3 >~/Dokumente/Journalctl_P3/Journal_vom-`date +"%Y-%m-%d--%r"`"
sh -c journalctl -b -p3 >~/Dokumente/Journalctl_P3/Journal_vom-`date +"%Y-%m-%d--%r"`
ls -t ~/Dokumente/Journalctl_P3/ |head -1>~/Schreibtisch/jour
exit
Code: Alles auswählen
ls -t ~/Dokumente/Journalctl_P3/ |head -1
Journal_vom-2023-08-03--11:51:30
Jedoch soll das nachdem Speichern in ~/Dokumente/Journalctl_P3/ von einem Editor geöffnet werden.
Code: Alles auswählen
~$ cat ~/Dokumente/Journalctl_P3/Journal_vom-2023-08-03--11:51:30
Aug 03 07:47:19 XFCE kernel: x86/cpu: SGX disabled by BIOS.
Aug 03 07:47:19 XFCE kernel: hid-generic 0003:0644:8038.0006: No inputs registered, leaving
Aug 03 07:47:19 XFCE kernel: i2c i2c-3: sendbytes: NAK bailout.
Aug 03 07:47:19 XFCE systemd-udevd[425]: /etc/udev/rules.d/40-libsane.rules:26 GOTO="libsane_rules_end" has no matching label, ignoring.
Aug 03 07:47:20 XFCE systemd-udevd[425]: /etc/udev/rules.d/S99-2000S1.rules:26 GOTO="libsane_rules_end" has no matching label, ignoring.
Aug 03 07:47:25 XFCE resolvconf[1993]: Failed to resolve interface "NetworkManager": Kein passendes Gerät gefunden
Aug 03 07:47:25 XFCE resolvconf[1998]: Failed to resolve interface "NetworkManager": Kein passendes Gerät gefunden
Aug 03 07:47:58 XFCE xdg-desktop-portal[2523]: pw.conf: can't load config client.conf: Datei oder Verzeichnis nicht gefunden