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)
<inline> ipl and backtick `
tobias
Using TST 5.5.2 on WinNT
I want my DC form to show a select list, whose options are based on a database query. Therefore I've created an <inline> ipl script containing a
curl
command enclosed in backticks The curl calls a php script on another server which in turn queries the database and returns the options as HTML code. This returned code shall be embedded in the <substitution> tags and returned to the DC form.
However, when I call the ipl by opening the DC form the curl doesn't return any value. If I instead use the command line to call the ipl, the curl works fine and the correct values are returned.
The user I'm working on is the same in TS as on the command line. Also the involved files have the necessary file permissions.
Does anyone have an idea about why the ipl behaves differently depending on whether it is invoked by templating or on the command line?
PS: I've tried the same with
wget
with the same effect.
Find more posts tagged with
Comments
Migrateduser
I think very few environment variables are available to inline, and they are all Interwoven specific. There are often problems connecting to databases because of this, but without your script or knowing more about your process it is probably not possible to tell if this is your issue and if so, which environment variable you need to define inside your script.
tobias
Thank you John for the suggestion. You were absolutely right about the environment variables. It was the
SystemRoot
variable that was missing (among a number of other variables which however don't affect the outcome).