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)
iwgen procudes empty files
waldemar
We are using a perl script that generates a batch file containing multiple iwgen commands to generate pages. Everything works quiiite reliable most of the time, well *most* of the time :-(
It looks like some DCRs are generated fine when using the Teamsite GUI BUT calling them through iwgen produced empty files. In that batch file we included a DEL command to delete the output file before generation to make sure the output file is indeed regenerated. Wo also dropped the Y: from all the paths.
I'm puzzled, I could not put my finger on it yet. The DCR I am experimenting with is a 1:1 copy (copied over Teamsite GUI, Ext.Attributes are fine) of another DCR that works perfect.
(This is Teamsite 5.5.2 on Win2k.)
Find more posts tagged with
Comments
MattP
I just went through something similar. I ended up printing out the iwgen cmd to the screen, then trying them from a cmd line to get the errors. A couple things to check.
Do you have the correct permissions to write (or delete) the file.
Are the paths correct (without the Y
Is the tpl in templating.cfg
Is the correct tpl being used (are you doing this on multiple types)
Good luck
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA
waldemar
thanks mattp,
no eveything is fine; configuration is ok; i do not receive any errors... nothing irregular except for the output file being empty.
waldemar
Hm, I found an interesting issue that MIGHT have to do with this problem, but it's at least killing our script at another frontier...
Since we chose the Mandatory Write Locking Model it seeeems many of the already generated (and to-be regenerated) pages need to be LOCKed before we can DELete them. Well I'm using IWLOCK and IWUNLOCK like this:
1. IWLOCK outputfile
2. DEL outputfile
3. IWGEN dcr tpl outputfile
4. IWUNLOCK outputfile
The result is driving me crazy!!
On our test-machine ALL outputfiles are (at least) generated, but 50% of them are EMPTY....
On the live-server (identical setup) the output files are not even touched by the script....
Wohw.... what to do....
herald10
We are doing something similar to generate all the files at a time using a perl script... Never faced any problem of this sort... could you please tell me a bit about your script.. that might help.. details like how you are generating the files using the extended attributes or .....
waldemar
Honestly we don't do anything to the extendet attributes at this point. It is really just a simple batch file that locks, deletes and generates. Interesting however is that generating the file over the TeamSite GUI WORKS with the same files!!...