shithub: rc

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