#!/bin/sh echo "on-exit executed" while read -r TASK; do echo "New/modified task $TASK" done exit 0