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
DSSendMail Problem
Moderators: chulett, rschirm, roy
I'm not sure this is a good idea, it basically means it will always treat any reference to "/usr/sbin" as a reference to "/usr/lib".
Can't you go in and edit the sendmail function to call the script correctly? Either that or create a link from 'sendmail' in /usr/sbin to the real one in /usr/lib... you'd still need an admin to do it for you, but this would be much safer.
-craig
Can't you go in and edit the sendmail function to call the script correctly? Either that or create a link from 'sendmail' in /usr/sbin to the real one in /usr/lib... you'd still need an admin to do it for you, but this would be much safer.
-craig
Sorry, it was more of a question than a statement that it can be done... I'd just be surprised if it can't. [:)] Perhaps someone from another part of the world can pipe in with the details on that, as I'm at home and don't have a client installed.
Having someone create a soft link to sendmail *will* work! On my system the actual executable lives in /usr/sbin and there is a soft link to /usr/sbin/sendmail in /usr/lib. Just curious, but if you have "no UNIX knowledge", as you *sure* about where sendmail really lives? Have you approached your admins for help?
-craig
Having someone create a soft link to sendmail *will* work! On my system the actual executable lives in /usr/sbin and there is a soft link to /usr/sbin/sendmail in /usr/lib. Just curious, but if you have "no UNIX knowledge", as you *sure* about where sendmail really lives? Have you approached your admins for help?
-craig
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I was having the same problem before. What you need to do is to search for a file with the name of 'dssendmail_template.txt' and change '/usr/sbin/sendmail' to '/usr/lib/sendmail'. There are some comments come with dssendmail_template.txt. This txt file should be under your project directory. Hope that helps.