Non so se ho capito bene, pero' potresti far fare l'append direttamente allo script.

Es. /tmp/script >> /path/file