Following the accepted answer to this question: Can I use an image located on the web in a LaTeX document?
I am trying to insert the following code to a trivial LyX document:
\write18{wget "http://cdn.sstatic.net/tex/img/logo.png" -O "/home/erelsgl/logo.png"}
I export the document to PS, but the file is not downloaded, and I get no error message (the trivial LyX document is indeed shown in PS).
How can I make LyX run the command?
I saw that there is a "shell-escape" argument that should be passed to the tex file processor, but how do I access it from LyX?

wget? – daleif Nov 11 '13 at 15:53