SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Sending customized mail at start

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Sending customized mail at start
Author Message
laiko



Joined: 11 Feb 2010
Posts: 43
Country: India

Post Sending customized mail at start Reply with quote
I have a very simple job which sends a mail:

Code:
#!/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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
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 View user's profile Send private message
laiko



Joined: 11 Feb 2010
Posts: 43
Country: India

Post Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
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 View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.