#!/bin/sh echo recording aucat -o /tmp/test.wav & PID=$! sleep 3 kill $PID sleep 0.2 echo playing aucat -i /tmp/test.wav echo done