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)
Error trying to open pipe
mcdoma2000
I am attempting to call iw_cgi_wrapper/tmplJavaBrowserSwitch.cgi/edit_dcr from cgitask. I keep getting the error:
Error: Error trying to open a pipe to E:\iw-home\httpd\iw-bin\tmplJavaBrowserSwitch.cgi (2).
The cgitask looks like this:
<cgitask name="CGI Test"
owner="US\mmcdowell"
description="Let a user run the CGI program"
start="t"
immediate="t"
readonly="t">
<areavpath v="/default/main/AFPNET/WORKAREA/AFPNET"/>
<successors>
<successorset description="Finish Job">
<succ v="End"/>
</successorset>
<successorset description="Retry Later">
<succ v="Wait for next test"/>
</successorset>
</successors>
<command v='iw_cgi_wrapper.cgi//tmplJavaBrowserSwitch.cgi'/>
<files>
<file path='content/en_US/media/app/pdf/afpnet' comment='asdf'/>
</files>
<!-- Some example task variables -->
<variables>
<variable key="sign" value="Virgo"/>
<variable key="city" value="Paris"/>
</variables>
</cgitask>
The double forward slash is required because somehow in the process it assumes /t is a tab character and strips it. I get this error message if I don't use a double forward slash (mplJavaBrowserSwitch.cgi - note the missing initial t):
Error: Error trying to open a pipe to E:\iw-home\httpd\iw-bin\mplJavaBrowserSwitch.cgi (2).
Anyone have any ideas? Attached is the task as I am attempting to run it. It is the sample cgi task provided with TeamSite 6.5.
Mark McDowell
Find more posts tagged with
Comments
Adam Stoller
You're on Windows - so either use a single forward slash or a double backward slash - do not use a double forward slash.
Whether or not that's your problem - I have no idea.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
mcdoma2000
If I use a single forward slash, I get the /mplJavaBrowserSwitch.cgi message. If I use double forward slash, I get the /tmplJavaBrowserSwitch.cgi message. If I use a single back-slash, I get the /mplJavaBrowserSwitch.cgi message. If I use a double back-slash, I get the /tmplJavaBrowserSwitch.cgi message.
I am trying to call the cgi to edit a DCR as a part of a workflow as in article 2231. Obviously, what I am trying is NOT working, but what WILL work?
Mark
mcdoma2000
If I use iw_cgi_wrapper.cgi\\\\tmplJavaBrowserSwitch.cgi, I get the /tmplJavaBrowserSwitch.cgi error message.
Adam Stoller
I think you're confusing the message in the dialog box (yes) that seems to interpret \t as a tab character with the actual cause of the problem that's leading to that error message appearing.
Are you sure your script works?
Can you post the CGI script here for others to look at?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
mcdoma2000
I have attached my workflow. I am attempting to call iw_cgi_wrapper.cgi/tmplJavaBrowserSwitch.cgi/edit_dcr, and that is where I'm getting the error message.
james1
I believe that your command value should be just:
tmplJavaBrowserSwitch.cgi
No slashes, and no "iw_cgi_wrapper.cgi". Have you tried that?
-- James
--
James H Koh
Interwoven Engineering
mcdoma2000
I get the error about trying to open a pipe.
james1
So, does "E:\iw-home\httpd\iw-bin\tmplJavaBrowserSwitch.cgi" exist? Is it executable? What happens when you run that program from a command prompt?
-- James
--
James H Koh
Interwoven Engineering
mcdoma2000
It doesn't exist as a separate .cgi file. I opened iw_cgi_wrapper.cgi in an editor (no, I didn't *save* the file) and did a search, and tmplJavaBrowserSwitch.cgi is in there. It is listed in a file in the iw-home\httpd\iw-bin\iwov_wrapper_cgis file, as well.
In the TeamSite Workflow Supplemental Tutorial Revision 3.00, it mentions in a footnote on page 15 of 43 that you can apparently leave out the iw_cgi_wrapper.cgi portion and call the script directly as <scriptname>.ipl, but I get THIS error when I try that:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
I can find no information in the iw-home\local\logs files about this error. I'm stumped.
james1
If using a command of "tmplJavaBrowserSwitch.ipl" didn't work, then copy show_env.cgi to tmplJavaBrowserSwitch.cgi and use "tmplJavaBrowserSwitch.cgi" as your command. There should be a show_env.cgi in IWHOME/httpd/iw-bin.
-- James
--
James H Koh
Interwoven Engineering
mcdoma2000
I did what you suggested, and the show_env.cgi comes up when copied to tmplJavaBrowserSwitch.cgi and the command of the cgitask is changed to tmplJavaBrowserSwitch.cgi.
The thing that I am trying to do is to edit a template record as per Knowledge Base Article: 2231 "Editing Templating Records as a workflow task". It says that tmplJavaBrowserSwitch.cgi is responsible for bringing up edit data capture form for both Java and browser templating ui. That is exactly what I'm trying to do. Do you have any ideas about how I can accomplish this?