+#: ../fish/guestfish-commands.pod:96
+msgid "event"
+msgstr ""
+
+#. type: verbatim
+#: ../fish/guestfish-commands.pod:98
+#, no-wrap
+msgid ""
+" event name eventset \"shell script ...\"\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../fish/guestfish-commands.pod:100
+msgid ""
+"Register a shell script fragment which is executed when an event is raised. "
+"See L<guestfs(3)/guestfs_set_event_callback> for a discussion of the event "
+"API in libguestfs."
+msgstr ""
+
+#. type: textblock
+#: ../fish/guestfish-commands.pod:104
+msgid ""
+"The C<name> parameter is a name that you give to this event handler. It can "
+"be any string (even the empty string) and is simply there so you can delete "
+"the handler using the guestfish C<delete-event> command."
+msgstr ""
+
+#. type: textblock
+#: ../fish/guestfish-commands.pod:109
+msgid ""
+"The C<eventset> parameter is a comma-separated list of one or more events, "
+"for example C<close> or C<close,trace>. The special value C<*> means all "
+"events."
+msgstr ""
+
+#. type: textblock
+#: ../fish/guestfish-commands.pod:113
+msgid ""
+"The third and final parameter is the shell script fragment (or any external "
+"command) that is executed when any of the events in the eventset occurs. It "
+"is executed using C<$SHELL -c>, or if C<$SHELL> is not set then C</bin/sh "
+"-c>."
+msgstr ""
+
+#. type: textblock
+#: ../fish/guestfish-commands.pod:118
+msgid ""
+"The shell script fragment receives callback parameters as arguments C<$1>, "
+"C<$2> etc. The actual event that was called is available in the environment "
+"variable C<$EVENT>."
+msgstr ""
+
+#. type: verbatim
+#: ../fish/guestfish-commands.pod:122
+#, no-wrap
+msgid ""
+" event \"\" close \"echo closed\"\n"
+" event messages appliance,library,trace \"echo $@\"\n"
+" event \"\" progress \"echo progress: $3/$4\"\n"
+" event \"\" * \"echo $EVENT $@\"\n"
+"\n"
+msgstr ""
+
+#. type: textblock
+#: ../fish/guestfish-commands.pod:127
+msgid "See also the guestfish commands C<delete-event> and C<list-events>."
+msgstr ""
+
+#. type: =head2
+#: ../fish/guestfish-commands.pod:129