in reply to Re: How to instantaneously automatically save
in thread How to instantaneously automatically save

EDIT: whenever `zpool` and `zfs`is used in the terminal
  • Comment on Re^2: How to instantaneously automatically save

Replies are listed 'Best First'.
Re^3: How to instantaneously automatically save
by Corion (Patriarch) on Jan 14, 2024 at 08:15 UTC

    The easiest way is to rename the zfs and zpool commands to something else (zfs.org?) and name your new programs zfs and zpool.

    Alternatively, set up shell aliases for the users using these commands.

    Alternatively, learn about what APIs ZFS offers to know about what zfs and zpool do or change, and listen to these API calls.

        Thank you so much, parv. Sorry for repeating myself too much, but I want you guys to understand what I'm trying to accomplish: What I want is for my perl program to listen immediately for whenever as soon as any change is made on the ZFS filesystem (if a dataset was created, if a clone was made, well any sort of change on the filesystem) save it instantaneously in database.
      Thank you very much, Corion. What I want is for my perl program to listen for whenever as soon as any change is made on the ZFS filesystem (if a dataset was created, if a clone was made, well any sort of change on the filesystem) save it immediately in database. So I will go by what you said in your last sentence, thanks again.