Home
TeamSite
mail-admin.ipl
fbuno
I am trying to configure the mail-admin.ipl so I can use it to get an email on deployment. However, hen I try to run it it comes up with this error:
"This script needs to be customized to work correctly on WinNT".
I customised the email address and also the "IWODHOME" variables but still no luck. Any ideas?
PS: I use TS 5.5.2 on W2K
Find more posts tagged with
Comments
Migrateduser
What's the mail-admin.ipl script, and where did you find it?
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
fbuno
it's on the OpendeployNG/solutions/perl folder. It's one of those customisable scripts included with the OD 5.5.1 install
Migrateduser
It pretty much means exactly what it says. The script was designed to use the UNIX utility "mailx" to send an email. You need to modify the script to use a Windows based email application to send the email. There may be other tweaks you have to make as well, but that's the most glaring thing.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
fbuno
I am trying to use the "blat" program but still no change
Migrateduser
Post your version of the script and I'm sure someone will notice what's wrong. I'm a Solaris user, so I can't be of much help with the details.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
Adam Stoller
I have a modified version of the mail-admin.ipl script that uses Mail:
endmail and requires two arguments:
mail-admin.ipl -t to_address -s smtp_host
This will probably make it into a future release of OpenDeploy (I just whipped it up after seeing this post) - I've only given it the barest of tests on W2K and no testing yet on Solaris.
Please try it out and let me know if it works for you (and on what platform you are using it).
NOTE: if you run this on a non-TeamSite server host, you will have to make sure that the server has a version of Mail/Sendmail.pm somewhere in it's
@INC
path.
--fish
(Interwoven, Curriculum Development)
fbuno
i am still having problems making it work. can you post the file? Thanks
Adam Stoller
I *did* post it - look at my previous response and in the left-hand column under my username you'll see the word "attachment" - I suggest right-clicking and saving it somewhere so you can then try it out.
--fish
(Interwoven, Curriculum Development)
fbuno
Got the attachment, thanks. Still get the error:
read error at d:\iw-home\iw-perl\site\lib/XML/Parser/Expat.pm line 464.
Adam Stoller
As I wrote and tested it in the same environment (W2K TS 5.5.2, OpenDeploy 5.5.1 [SP2]) - I'm a bit confused.
How are you specifying the DNR within your deployment config file? (cut-n-paste - so that any typos are those that actually exist, and not introduced by re-creating the code in this forum)
--fish
(Interwoven, Curriculum Development)
fbuno
i have not got SP2 installed yet (infact, i was not even aware of it). Thats is what might be then.
Adam Stoller
I doub't that SP2 has anything to do with it - I think there is a question of usage and/or whether the code somehow got munged between my posting it and your retrieving it.
I'd prefer to start with looking at how you are using it from within the deployment configuration file...
--fish
(Interwoven, Curriculum Development)
taiyo
I've tried to run fish's script from the command line and get the same error --- (Win 2k 5.5.2 / OD SP 1)
Wondering if there is another way to get a nice email displaying the results of deployment (ala Deploy and Run).
Adam Stoller
There's another thread about this script that I just responded to - and basically, if you are using OD 5.6, you are probably getting the manifest style in-memory log rather than the previously used format of the in-memory log and that might be the source of the problem. See the other thread for more details and/or RTFM regarding the dnrProperties element's infoStreamFormat attribute.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
taiyo
Thx for the advice -- i've tried changing the dnrProperties to manifest in odbase.xml and the email will send but the contents are missing....
Piers
I have turned on "log" reporting as noted in the manual.
It's not enough to just change
<dnrProperties allowDnrExecution="yes" infoStreamFormat="log" />
you must also disable eventreporting, since this forces the use of manifest reporting.
The mail-admin script runs but I always get the following:
Is there anywhere to debug this?
Thanks much appreciated.
I have tried with the Manifest logging to, and same result
-----Original Message-----
From: OpenDeploy@VANEXCH01 [mailto
penDeploy@VANEXCH01]
Sent: Monday, April 12, 2004 12:26 PM
To
ubject: OpenDeploy: Success (0)
Successfully deployed: ======================================================================
In case I'm missing something - here is the DNR
<deployment transactional="yes">
<execDeploymentTask useDefinition="ba_japan" downRev="">
<deployNRun>
<dnrDeployment location="source" when="after" state="failure">
<script cmd="d:\iw-home\iw-perl\bin\iwperl.exe d:\iw-home\OpenDeployNG\solutions\perl\mail-admin.ipl -t psaunders -s VANEXCH01" where="d:\iw-home\OpenDeployNG\solutions\perl">
</script>
</dnrDeployment>
</deployNRun>
<deployNRun>
<dnrDeployment location="source" when="after" state="success">
<script cmd="d:\iw-home\iw-perl\bin\iwperl.exe d:\iw-home\OpenDeployNG\solutions\perl\mail-admin.ipl -t psaunders -s VANEXCH01" where="d:\iw-home\OpenDeployNG\solutions\perl">
</script>
</dnrDeployment>
</deployNRun>
</execDeploymentTask>
</deployment>
Edited by Piers on 04/12/04 12:59 PM (server time).
Adam Stoller
<font color='brown'>The mail-admin script runs but I always get the following:</font>
? You didn't include "the following" data.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com