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)
Executing a command in TPL
megamala
In my tpl i am executing a command. I need to executed this command after gen or regen of a file. I tried, but it is executing that command before gen or regen of page, but I want to execute that command after gen or regen of the page.
Thanks in Advance
MM Guptha
Find more posts tagged with
Comments
megamala
no reply
Thanks in Advance
MM Guptha
dwhitney
From what I've seen, you have to deal with the page not containing any data, i.e. 0 file size, but you do have access to the extended attributes.
What sort of command are you running?
megamala
It is generating XML file and I need to pass this XML as parameter to Java Program.
Ex. we have to generate xyz.xml
After it generates this XML , I have to call Java Program with this XML file as parameter. But it is Generating XML file after Command calls, but I want to Generate this XML file before it Calls Java Program in the tpl.
Thanks in Advance
MM Guptha
dwhitney
I hate to say it but you might be hosed.
It sounds like you might need to pass your program the reference to the DCR the generated file relies on and then do what ever you need to do from there.
Michael
Perhaps in your Java program you could wait until the generation is finished and then process the file? Or does the TPL wait for the external program to finish before it generates the xml? If this is happening then you should have a close look at how you launch the Java program from the TPL as you have different options in perl which may wait or not wait for the program to finish.
hth
Cheers
Michael