shithub: rc

ref: f7e9f4873a050552f9d197269cb028f78f8f20d7
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