The Bourne Again Shell script presented in this article demonstrates techniques related to capturing and logging output (standard output and standard error stream) of a script into a log file while also delivering it to the regular output destinations (for example the terminal or whatever the caller has chosen to redirect to). If you are […]
Articles in Category "Technology"
Make a Bourne Again Shell Script Log its Output to a File
23. November 2024 in Administration, GNU/Linux, Programming.
Using sed or awk to ensure a specific last Line in a Text
20. August 2023 in GNU/Linux, Programming.
Given a file containing bytes of text with lines separated by the newline character (\n), one of these lines can be said to be “the last line of the file”; it is a sequence of bytes occurring in the file, for which holds: The sequence contains no newline character, and the sequence is followed by […]
Determine IPv4 Addresses of a Libvirt Qemu-KVM Domain
1. Juli 2023 in Administration, GNU/Linux, Technology.
In the VM, on Redhat-likes, make sure that the Qemu guest agent is installed: dnf install qemu-guest-agent On Debian-likes, execute: apt install qemu-guest-agent For Microsoft Windows guests, there are some tutorials on the web, see for example [1]. On the HV, execute: virsh qemu-agent-command –domain myvm \ ‘{“execute”:”guest-network-get-interfaces”}’ | \ jq -r ‘ [.return[] | […]
Two Paintings
19. Januar 2023 in Graphics, Multimedia, Other.
Did i mention that i like Blender? ​ ​
Two Worlds, one Reality
19. Januar 2023 in Graphics, Multimedia, Other, Technology.
Sometimes, what topside constitutes an amazing engineering feat is turtles all the way down.
Eine Bemerkung ĂĽber das Funktionieren
16. Dezember 2022 in Society, Technology.
Nach einer Weile hört man immer mal wieder gewisse SprĂĽche ĂĽber das Funktionieren irgendwelcher Produkte, Technologien, Techniken, Lösungswege, Praktiken oder Konfigurationen X: “Was funktioniert [also X], ist gut.” “X ist nicht schön, aber es funktioniert.” “Hauptsache, es [gemeint ist X] funktioniert.” “Wieso, es [X] funktioniert doch!” “Wir wissen zwar nicht warum, aber es [X] funktioniert.” Lösungen […]