I'm trying to use a cgi-callout and need to know how to utilize the cgi wrapper (iw_cgi_wrapper.cgi) properly. When my callout references my script in the iw-bin directory it works fine with the cgi wrapper. But when I place the script into a different directory it chokes and gives me a pipe error. This is the relevant part of datacapture cfg:
<item name="date">
<label>Publish Date</label>
<description> Enter publish date here. e.g. 8/19/2002</description>
<text required="t" size="10" maxlength="10" validation-regex="[0-1][0-9]/[0-3][0-9]/[1-2][0-9][0-9][0-9]">
<inline command="iwperl /iw-home/custom/bin/format_date.ipl"/>
<cgi-callout url="/iw-bin/iw_cgi_wrapper.cgi/custom/templating/date_calendar.ipl"
label="Change Date" windowfeatures=" width=200,height=230,resizable=no,toolbar=no,scrollbars=no,
titlebar=no"/>
</text>
</item>
The callout script (date_calendar.ipl) is located in a directory here: /iw-home/httpd/iw-bin/custom/templating/. I have found no information that explains how to use the CGI wrapper other then a few blurbs in the TST dev and TS Admin docs.
I really don't want to dump custom scripts into the iw-bin directory and just need the proper syntax (if available).