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)
Incompatible workflows (TS and Solaris)
abhishek_gupta
Hi,
I configured a WF on TS on NT with email. I used the iwsend_mail.ipl files, and it worked fine. It used to send mails to my Inbox in the outlook.
Now I tried configuring the same wft and mail ipl files on my Solaris box. The command which I execute from my wft to send mails looks like -
__INSERT__("<command v="$iwhome/iw-perl/bin/iwperl $iwhome/bin/iwsend_mail.ipl $reviewer_email -f $user_email\"/>");
Is there some particular changes which have to be done to the ipl and wft files while moving code to Solaris from NT. TS used at both places is 5.5.2
Thanks for any help in advance.
-Abhi
Find more posts tagged with
Comments
Migrateduser
Just as a basic tip: make sure your files are UNIX files.
The #! at the beginning of the ipl scripts can also be important.
If you call external programs `iw-home/bin/iwextattr` or so, you might want to check you're not including .exe or so.
To debug: go to the to do list, get yourself a workflow number and a task number of the failed task, then do:
iw-home/iw-perl/bin/iwperl -w iw-home/bin/iwsend_mail.ipl [reviewer_email] -f [user_email] [workflow_number] [task_number] [vpath to workarea]
This should execute your external task on the command line, giving you nice perl warnings and errors.
Adam Stoller
Also - double check your quoting - in the example you showed in your post - you had: one set of double-quotes surrounding another set of double-quotes where the end-double-quote was escaped (\") but the beginning one wasn't - this might just have been a typo in your post but ...
In general, on Unix, you should not need to specify iwperl in front of the script name - i.e. "$iwhome/iw-perl/bin/iwperl $iwhome/bin/iwsend_mail.ipl" could be just "$iwhome/bin/iwsend_mail.ipl" -- this depends on (a) the #! path in the script being correct, (b) the script being set to be executable (e.g. chmod 755).
I believe that iwsend_mail.ipl has been successfully run on both windows and Unix - so you shouldn't need to do anything to the script to make it work in either platform. If you find this to be untrue - please notify Interwoven Support.
--fish
(Interwoven Senior Technical Consultant)
abhishek_gupta
Hi,
I tried the ways which you all recommended. Still not working. In the Job Details of the Task its showing an error which says "ERROR: Unable to send notification: Illegal seek at /software/dump/teamsite/iw-home/iw-perl/lib/perl5/site_perl/5.005/Mail/Mailer.pm line 267". Dont know whats this about. This error is shown in the external task, email. I tried using all the default author assignment wf and iwsend_mail ipl files of solaris, and its still not working. Any idea what could be the issue?
Do appreciate any kind of help.
Thanks
Abhi
Adam Stoller
Have you tried enabling debugging for iwsend_mail in your iw.cfg file/
For that matter, have you made sure that you configured the settings for iwsend_mail (mailserver, maildomain, etc.) in the *correct* iw.cfg file on your Solaris machine (by default it is located in /etc/ *not* IWHOME/etc/)
If you could show the entire comment for that task (it should indicate who the email was being sent 'from' and 'to') and the iw.cfg file (as an attachment) - it would make it easier for someone here to assist you.
--fish
(Interwoven Senior Technical Consultant)