I can run this command:
$ play mylist.m3u
And music plays.
I can then press Ctrl-Z to suspend the job, and issue bg to have it run in the background.
However, if I then run disown and exit, the music stops playing, even though the play command still shows up in ps.
I would expect the music to keep playing.
Also interesting
I run the command
$ play mylist.m3u &
Music does not play. The job shows as the stopped status.
I can also run the command
$ nohup play mylist.m3u &
And no music plays - the job immediately stops.
However,
$ nohup play mylist.m3u
Does have music play, but I can't disown it, as before.
It seems like all these are related.
Most programs behave well when disowned or run through nohup, but not SoX.
Does anyone know why?