Try changing #!c:\Intewoven\TeamSite/iw-perl/bin/iwperlto #!c:\Intewoven\TeamSite/iw-perl/bin/iwperl.exeIn 6.5 on Windows you need .exe on the end. Not sure if this will help, but give it a shot.
iwperl -w -c scriptname
Thank you Guys, i guess the problem was with iwperl.exe. And there was a typo. Thank you again. But i had this question as can can we make a workflow to kick of from this ipl file before the file can actually get uploaded?Thanks
you should NOT need the .exe on the end - unless you've done something wrong like creating an empty file called "iwperl" in the iw-perl/bin/ directory - or broke the PATHEXT environment variable.You SHOULD run: iwperl -w -c scriptname to ensure that there are no syntactic errors in the code.If you pass that test - but still get an error - check the error logs for iwwebd (which are usually either in IWHOME/local/logs/iwui/ or IWHOME/iw-webd/logs/) for more details.
Oooh, I am on TS6.5 with SP2 on Win 2000. Yes i did add my $iw_home in my tagline.Thanks
Dang, Ghoti, why do you always have to be right.
Actaully one of our managers requirement was, that when ever a user uploads/Imports a file onto Teamsite, he should be notified. So i though of creating a template for uploading a file and make the user to kick a workflow which will send email to manager saying that one of his user has uploaded a file. Can you think of any scenario in which this can be accomplished?? Thank you for your help
Yes i just need to send an email to the manager when ever he uploads a file, So can i do it using the get_cmd_mail function which we use in workflow?Please suggest.Thanks
use Mail::Mailer;my $mailerObject = new Mail::Mailer('smtp', Server => 'mailserver.company.com');$mailerObject->open( { 'From' => 'someone@company.com', 'To' => 'someone@company.com', 'Subject' => 'Hello World!' });print $mailerObject 'The sky is falling!';$mailerObject->close();
I did a little checking in my iw-perl\bin folder and low and behold, there was a 0 kb "iwperl" file in there as well as another 0 kb "i" file in there. As for how they got in there I'm not sure. Support knew the answer right away and mentioned that it was a bug that they were aware of then I don't think I put it there. I would imagine it was from one of the patches or SP's that I installed during when creating the server. It has a date of 11-11-2005 6:04pm. I renamed it and I can now run without the exe.Dang, Ghoti, why do you always have to be right.
Yes i posted the Perl part of it under PERL section, sorry for two posts, Thank you Jeff, adam and nipper. But i tried hooking up the Mail::Mailer in my performFileUpload.ipl, it didn't do a lot, I specified an ip adress for the mailserver, hope this is not an issue, can you sugget as where i am going wrong?thank you
Yeah, trying to get your cgi to call one of your workflow email scripts is a bit of overkill. Sending an email with Mail::Mailer is as simple as:use Mail::Mailer;my $mailerObject = new Mail::Mailer('smtp', Server => 'mailserver.company.com');$mailerObject->open( { 'From' => 'someone@company.com', 'To' => 'someone@company.com', 'Subject' => 'Hello World!' });print $mailerObject 'The sky is falling!';$mailerObject->close();~Jeff