Do you have a custom build process that propogates your code from CVS to target TS environment?
We are considering doing processing on the file, but it becomes a pain in the but because we use CVS as our sc repository. We would have to process the file after checkout to make it work in Windows, then process it again before we check it back into CVS.Is there a way to handle this in CVS?Thanks in advance,Lucas
You could also put the Unix path in the #! line.As long as you're not trying to execute the Perl script as a CGI on Windows - Windows doesn't care about the #! line that much (it uses ftype and assocs to determine what script engine to run) - and you can always be explicit and do something like: [iw]perl -w -c script-name.ipl to verify syntactic correctness on the Windows box (though this assumes you have the TeamSite modules loaded on your Windows box.Also - your post isn't clear about whether your Windows box is a TeamSite box or not.
Thanks for this response Fish!The Windows box is a TeamSite box (6.7.2).I find that if I change the #! line on the /iw-bin scripts, then they break. Is there a way around this?
I asume these are CGI ? There is really no way of not changing them.
That's what my initial hunch was telling me. I think we can integrate an ANT script into CVS that could do some of this work for us.Thanks,Lucas
Which is why I always use TS and OpenDeploy for this case. The other thing you can do is make the original code a stub and the use do, require or eval:Uses the value of EXPR as a filename and executes the contents of the file as a Perl script.do 'stat.pl';is just likeeval `cat stat.pl`; from http://perldoc.perl.org/functions/do.htmlNote, Ghoti will chastise me because this will be slower than native. But it may not make a huge difference and if this update happens often, it is worth it