> > I assume you can still do 'interpreter ${TMPDIR}/${tmpfile}' to execute it ? > Not easily, because it is passed to start-stop-daemon. That was the > reason for writing a separate file in the first place. In my reading of manual page for start-stop-daemon you should be able to do start-stop-daemon --exec /usr/bin/perl --chuid postgres -- whatever-script-options-and-options