Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
getting error while calling cgi..
Amrita1
getting error- " Command iw-bin not found in the command descriptors. "
while trying to execute the following..
var params = new Object();
params.vpath = IWDatacapture.getWorkarea();
params.vitem = item.getName();
IWDatacapture.callServer("iw-bin/catalog_details.cgi", params);
did I miss anything?
i also dont want parameters..plz let me know if I can ignore parameters.
thanks.
Find more posts tagged with
Comments
nipper
This expects a URL:
http://servername:80/iw-bin/mycgi
Amrita1
thanks..
I think it got the URL, error is not there..
but not reading the cgi..
#!/app/iw-home/iw-perl/bin/iwperl -w
use CGI;
use strict;
use TeamSite::XMLparser;
use TeamSite::Config;
use Citibank::TemplateUtils;
<script language="javascript">
alert('test my cgi');
</script>
my $cmd = "/apps/iw-home/bin/iwpt_compile.ipl -pt /default/main/2008_10_dev/WORKAREA/users/templatedata/ContentTypes/CATALOG/presentation/catalog_generatexml.tpl -iw_include-location /default/main/2008_10_dev/WORKAREA/users/templatedata/ContentTypes/CATALOG/data/en_US -ofile output/test.xml";
#execute presentation template command and return stdout to string
my $results = `$cmd`;
$results\n
exit;
Pawan
Did you check for the compilation of your cgi, and the log file if any. If your cgi is being called as you say, then try debugging it from line 1. May be you can try by commenting the "use strict"
Amrita1
thanks, it is executing properly..
thanks a lot.
ISCBorisB
I think it got the URL, error is not there
Think again - or better try what has been recommended first. callServer expects valid URL and yours isn't.
You can *play it safe* with Andy's suggestion or simply use absolute Path (providing that Server/Port are the same)
IWDatacapture.callServer("
/
iw-bin/catalog_details.cgi", params);
Note also that CGI is a protocol, simply calling arbitrary script CGI "does not a CGI make". As is your code's output (if you ever need one)
will never get bck to the DC FormAPI.
Adam Stoller
This expects a URL:
http://servername:80/iw-bin/mycgi
Actually - I think just providing the leading slash would have been sufficient:
/
iw-bin/mycgi
(opps - posted this before seeing Boris' response)