shithub: rc

ref: 70688168ffb7325916c46c3981b4e49fa38945cf
dir: /bin/pcmf/

View raw version
#!/bin/rc
rfork n
t=/tmp/pplay.$pid
fn clean{ rm -f $t }
fn sigexit{ clean }
fn sigint{ clean }
ramfs
play -o /tmp/pplay.$pid $* >[2]/dev/null
pplay -f /tmp/pplay.$pid
rm -f /tmp/pplay.$pid