Re: Treffen 27.7.22

Daniel Leidert <[email protected]>
Newsgroups gmane.user-groups.linux.dresden
Message-ID <[email protected]>
Am Mittwoch, dem 27.07.2022 um 12:58 +0200 schrieb Bernhard Schiffner:
> 
> Hat schon mal jemand so was gemacht:
> - eine bestimmte (UUID) USB-Festplatte wird in den Rechner eingesteckt,
> - fsck falls s.u. daneben ging
> - backup (als user X) läuft automatisch los, 
> - danach wird die Platte "umounted" und 
> - eine email wird verschickt
> 
> Den backup-Teil habe ich schon, aber wenn ich "das Umfeld" kriegen könnte:
> das wäre 'ne Zeitersparnis für mich.

Alternativ zu udev könntest du auch am Session oder System dbus lauschen und
dich an das DeviceAdded()-Signal von udisks2 hängen, falls es das noch gibt.
Mir scheint allerdings, dass du mit dem udev-Ansatz eher zum Ziel kommst.


Gruß, Daniel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.