2007-06-06-0407Z


Found a cool way of playing music on my other laptop, which has all my downloads, without leaving my seat:

$ cat playall.sh
#!/bin/bash
MPLAYER2=/cygdrive/c/Program\ Files/Windows\ Media\ Player/mplayer2.exe
cd ~/downloads
for file in *.mp3; do "$MPLAYER2" /play /close "$file"; done

I bg'd the task and logged out (had to close the Cygwin bash window), and it continued to the second song, but then died. Needs some work I guess, or maybe just nohup.

Back to blog or home page

last updated 2013-01-10 20:54:41. served from tektonic.jcomeau.com