Any number of applications, but I use mplayer as an example.
I have the file:
Mplayer is running in slave mode and getting stdin from a fifo. Normally (i.e. without a fifo) you would run mplayer in slave mode, then type:
Code:
loadfile /home/user/music/Beck\ -\ \"Sea Change\"\ -\ it\'s\ all\ in\ your\ mind.aac
and it runs.
But now I have to put that string into a pipe, and bloody "echo" or some such bloody thing keeps de-escaping my quotes. I want to be able to do this in a script, so I can manually separate filenames at points with quotes in them. Or I could, but this would start to get very kludgey and bloated.
So, as posted, I want to send the above string into a fifo, and come out EXACTLY the same, escaped quotes and all.