DSSendMail Problem
Posted: Wed Feb 26, 2003 4:18 am
Hi all,
I am trying to create a job with an After-Job Routine to Send Email for notification. I's using DStage 5.2 on Solaris.
Everytime I run the job, it always fail.
I tried to test the DSSendMail function by using DSSendMailTester Routine, the same error come:
TEST #1
*******
Arg1 = EndyL@bot.or.th
Arg2 = EndyL@bot.or.th
Arg3 = Test ETL
Arg4 = SMARTBMA1
Arg5 = Tester
Test completed.
DSLogWarn called from : DSSendMail
Message to be logged is...
> Error when executing command: "sendmail_62046.sh"
> *** Output from command was: ***
> SH: sendmail_62046.sh: not found
>
> The following parameters in the call to DSSendMail were not mentioned in the file 'dssendmail_template.txt': server
>
> Contents of command file:
> #! /usr/bin/sh
> /usr/sbin/sendmail -t To: EndyL@bot.or.th
> Subject: Test ETL
>
> Tester
> ////
Result = Error when executing external command
I checked where the 'sendmail' command is, and I found out it's not in /usr/sbin directory, instead it's in /usr/lib directory.
I have no UNIX knowledge, Do I need to configure the configuration in the Solaris?
Kindly advise...
Regards
ND
I am trying to create a job with an After-Job Routine to Send Email for notification. I's using DStage 5.2 on Solaris.
Everytime I run the job, it always fail.
I tried to test the DSSendMail function by using DSSendMailTester Routine, the same error come:
TEST #1
*******
Arg1 = EndyL@bot.or.th
Arg2 = EndyL@bot.or.th
Arg3 = Test ETL
Arg4 = SMARTBMA1
Arg5 = Tester
Test completed.
DSLogWarn called from : DSSendMail
Message to be logged is...
> Error when executing command: "sendmail_62046.sh"
> *** Output from command was: ***
> SH: sendmail_62046.sh: not found
>
> The following parameters in the call to DSSendMail were not mentioned in the file 'dssendmail_template.txt': server
>
> Contents of command file:
> #! /usr/bin/sh
> /usr/sbin/sendmail -t To: EndyL@bot.or.th
> Subject: Test ETL
>
> Tester
> ////
Result = Error when executing external command
I checked where the 'sendmail' command is, and I found out it's not in /usr/sbin directory, instead it's in /usr/lib directory.
I have no UNIX knowledge, Do I need to configure the configuration in the Solaris?
Kindly advise...
Regards
ND