/usr/bin/wvPS --targetdir=/tmp/ /tmp/in.doc out.ps ^^^ Trailing slash after targetdir must be present. I call it from a script like so: /usr/bin/wvPS --targetdir=/tmp/ $1 $(basename $1).ps