Thanks to FrankZabbath for a greatly improved lastfmsubmitd script. It took me hours to figure out why it wasn’t working – I kept getting the error message
: no such file or directory
… turned out I had copied the script over in DOS text format, so it was interpreting the first line as
and was looking for a file called ^M.
Ho hum. Sorted now, and running happily.