 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
laiko
Joined: 11 Feb 2010 Posts: 43 Country: India |
|
Sending customized mail at start |
|
I have a very simple job which sends a mail:
 |
 |
#!/bin/sh
echo "Exract process Started, drop feed anytime" | mail -s "Extract STARTED" abc@portal.com |
I chose the 'Run Script' option (Batch Script -platform-dependent). It is giving an error 'Remote job failed. Exit code: 1'. But when I save this script in a file, say 'mail.sh' and run it in unix command line using '. mail.sh', it is working fine. What is wrong with it?
|
|
Sat Feb 27, 2010 10:42 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
Why does it say "'Remote job failed?" Why remote? Is that what you want?
If it is a remote job indeed, what do you get in the scheduler.log on the remote agent side?
|
|
Sat Feb 27, 2010 12:38 pm |
|
 |
laiko
Joined: 11 Feb 2010 Posts: 43 Country: India |
|
|
|
Yes, it looks strange :) I am still preparing the script. It should start sending mail before the process begins (rest of the codes).
|
|
Sat Feb 27, 2010 2:11 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
If the intent is to run it as a local job, clear the Host/Agent job property. The job fails not because it fails to run your script, but because it fails to connect to the specified agent.
|
|
Sat Feb 27, 2010 2:25 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|