<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span>Hi Diaulas, thank you for the reply but the thing is I am unable to log in to the RT when I do below</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent;"><span style="font-style: italic;">export RTSERVER=http://localhost</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new
york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>and do </span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent;"><span style="font-style: italic;">rt ls </span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>it prompt me for a password once I enter the password and hit enter I get below
error</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="background-color: transparent;"><span style="font-style: italic;">Query:Status!='resolved' and Status!='rejected'</span></div><div style="background-color: transparent;"><span style="font-style: italic;"> Strong encryption not available, switched off by externalauth=0</span></div><div style="background-color: transparent;"><span style="font-style: italic;"> Password will be sent to localhost unencrypted</span></div><div style="background-color: transparent;"><span style="font-style: italic;"> Press CTRL-C now if you do not want to continue</span></div><div style="background-color: transparent;"><span style="font-style: italic;">Password:</span></div><div style="background-color: transparent;"><span
style="font-style: italic;"></span></div><div style="background-color: transparent;"><span style="font-style: italic;">rt: Server error: Forbidden (403)</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">As the URL I tried http://x.x.x.x as well but with the same error</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Thanks and Regards</div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span
style="font-weight:bold;">From:</span></b> Diaulas Castro <diaulas.castro@intersolution.inf.br><br> <b><span style="font-weight: bold;">To:</span></b> Asanka Gunasekera <asanka_gunasekera@yahoo.co.uk>; "rt-users@lists.bestpractical.com" <rt-users@lists.bestpractical.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, 22 May 2013, 17:20<br> <b><span style="font-weight: bold;">Subject:</span></b> RES: [rt-users] RES: Generate end of the day report and email<br> </font> </div> <div class="y_msg_container"><br><div id="yiv3441943405">
<style><!--
#yiv3441943405
_filtered #yiv3441943405 {font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered #yiv3441943405 {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered #yiv3441943405 {font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv3441943405
#yiv3441943405 p.yiv3441943405MsoNormal, #yiv3441943405 li.yiv3441943405MsoNormal, #yiv3441943405 div.yiv3441943405MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman", "serif";}
#yiv3441943405 a:link, #yiv3441943405 span.yiv3441943405MsoHyperlink
{
color:blue;
text-decoration:underline;}
#yiv3441943405 a:visited, #yiv3441943405 span.yiv3441943405MsoHyperlinkFollowed
{
color:purple;
text-decoration:underline;}
#yiv3441943405 pre
{
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
#yiv3441943405 p.yiv3441943405MsoAcetate, #yiv3441943405 li.yiv3441943405MsoAcetate, #yiv3441943405 div.yiv3441943405MsoAcetate
{
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma", "sans-serif";}
#yiv3441943405 p.yiv3441943405msoacetate, #yiv3441943405 li.yiv3441943405msoacetate, #yiv3441943405 div.yiv3441943405msoacetate
{
margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman", "serif";}
#yiv3441943405 p.yiv3441943405msonormal, #yiv3441943405 li.yiv3441943405msonormal, #yiv3441943405 div.yiv3441943405msonormal
{
margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman", "serif";}
#yiv3441943405 p.yiv3441943405msochpdefault, #yiv3441943405 li.yiv3441943405msochpdefault, #yiv3441943405 div.yiv3441943405msochpdefault
{
margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman", "serif";}
#yiv3441943405 span.yiv3441943405msohyperlink
{}
#yiv3441943405 span.yiv3441943405msohyperlinkfollowed
{}
#yiv3441943405 span.yiv3441943405estilodeemail17
{}
#yiv3441943405 span.yiv3441943405textodebalochar
{}
#yiv3441943405 p.yiv3441943405msonormal1, #yiv3441943405 li.yiv3441943405msonormal1, #yiv3441943405 div.yiv3441943405msonormal1
{
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman", "serif";}
#yiv3441943405 span.yiv3441943405msohyperlink1
{
color:blue;
text-decoration:underline;}
#yiv3441943405 span.yiv3441943405msohyperlinkfollowed1
{
color:purple;
text-decoration:underline;}
#yiv3441943405 p.yiv3441943405msoacetate1, #yiv3441943405 li.yiv3441943405msoacetate1, #yiv3441943405 div.yiv3441943405msoacetate1
{
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma", "sans-serif";}
#yiv3441943405 span.yiv3441943405estilodeemail171
{
font-family:"Calibri", "sans-serif";
color:#1F497D;}
#yiv3441943405 span.yiv3441943405textodebalochar1
{
font-family:"Tahoma", "sans-serif";}
#yiv3441943405 p.yiv3441943405msochpdefault1, #yiv3441943405 li.yiv3441943405msochpdefault1, #yiv3441943405 div.yiv3441943405msochpdefault1
{
margin-right:0cm;
margin-left:0cm;
font-size:10.0pt;
font-family:"Times New Roman", "serif";}
#yiv3441943405 span.yiv3441943405EstiloDeEmail31
{
font-family:"Calibri", "sans-serif";
color:#1F497D;}
#yiv3441943405 span.yiv3441943405TextodebaloChar
{
font-family:"Tahoma", "sans-serif";}
#yiv3441943405 span.yiv3441943405Pr-formataoHTMLChar
{
font-family:"Courier New";}
#yiv3441943405 .yiv3441943405MsoChpDefault
{
font-size:10.0pt;}
_filtered #yiv3441943405 {
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
#yiv3441943405 div.yiv3441943405WordSection1
{}
--></style>
<div>
<div class="yiv3441943405WordSection1">
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">Sorry, didnt understand your message, but from your log I think you don’t have RTSERVER variable,</span></div>
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span></div>
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">Try to add on top of script:</span></div>
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:10.0pt;">export RTSERVER=your.rt.installation</span></div>
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span></div>
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span></div>
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">if you got error try to execute a simple
</span><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">/usr/bin/rt ls TICKET_NUMBER</span></div>
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span></div>
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">That script relies on output of RT CLI command.</span></div>
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span></div>
<div class="yiv3441943405MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span></div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;">
<div class="yiv3441943405MsoNormal"><b><span style="font-size:10.0pt;">De:</span></b><span style="font-size:10.0pt;"> Asanka Gunasekera [mailto:asanka_gunasekera@yahoo.co.uk]
<br>
<b>Enviada em:</b> quarta-feira, 22 de maio de 2013 08:38<br>
<b>Para:</b> Diaulas Castro; rt-users@lists.bestpractical.com<br>
<b>Assunto:</b> Re: [rt-users] RES: Generate end of the day report and email</span></div>
</div>
</div>
<div class="yiv3441943405MsoNormal"> </div>
<div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span style="color:black;">Hi Diaulas, can you tell me the user name that the rt command is looking for since I put root (of rt) and tried some and other rt account as well, but I am getting below error</span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal"><span style="color:black;"> </span></div>
</div>
<div>
<div>
<div class="yiv3441943405MsoNormal"><span style="color:black;">Query:Status!='resolved' and Status!='rejected'</span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal"><span style="color:black;">rt: Server error: Forbidden (403)</span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal"><span style="color:black;"> </span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal"><span style="color:black;">Thank you and Best Regards</span></div>
</div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
<div>
<div>
<div>
<div class="yiv3441943405MsoNormal" align="center" style="text-align:center;background:white;">
<span style="color:black;">
<hr size="1" width="100%" align="center">
</span></div>
<div class="yiv3441943405MsoNormal" style="background:white;"><b><span lang="EN-US" style="font-size:10.0pt;color:black;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;color:black;"> Diaulas Castro
<</span><span style="font-size:10.0pt;color:black;"><a rel="nofollow" ymailto="mailto:diaulas.castro@intersolution.inf.br" target="_blank" href="mailto:diaulas.castro@intersolution.inf.br"><span lang="EN-US">diaulas.castro@intersolution.inf.br</span></a></span><span lang="EN-US" style="font-size:10.0pt;color:black;">><br>
<b>To:</b> "</span><span style="font-size:10.0pt;color:black;"><a rel="nofollow" ymailto="mailto:rt-users@lists.bestpractical.com" target="_blank" href="mailto:rt-users@lists.bestpractical.com"><span lang="EN-US">rt-users@lists.bestpractical.com</span></a></span><span lang="EN-US" style="font-size:10.0pt;color:black;">"
<</span><span style="font-size:10.0pt;color:black;"><a rel="nofollow" ymailto="mailto:rt-users@lists.bestpractical.com" target="_blank" href="mailto:rt-users@lists.bestpractical.com"><span lang="EN-US">rt-users@lists.bestpractical.com</span></a></span><span lang="EN-US" style="font-size:10.0pt;color:black;">>
<br>
<b>Sent:</b> Friday, 10 May 2013, 21:42<br>
<b>Subject:</b> [rt-users] RES: Generate end of the day report and email</span><span lang="EN-US" style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;"> </span></div>
<div id="yiv3441943405">
<div>
<div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">Made this bash script to accomplish using RT CLI.</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">Just customize “From:”, To:” and “Status” search in rt ls command and schedule on crontab.</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">This script will list all tickets and mail fields to temp file after that a while loop will add html tags (tables and rows) trough command sed, so I got
a nice looking mail report. (<a rel="nofollow" target="_blank" href="http://postimg.org/image/yfmlp9307/">http://postimg.org/image/yfmlp9307/</a>)</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> If you want to color the rows use this before sendmail command:</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> sed -i -e '/Nobody/s/D2EAF1/CCCCCC/g' $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> sed -i -e '/diaulas.castro/s/D2EAF1/6FCCFF/g' $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> This will change all tickets by nobody to gray and Diaulas.castro to light blue</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">PS: I know! RT-CRONTOOL exist, but I m not perl expert.. =(</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">####################################</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">export RTORDERBY=owner</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">MAIL=/tmp/rel_todos_tickets_abertos.sh.mail</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "From:
<a rel="nofollow" ymailto="mailto:MY_TICKET@MY_DOMAIN.COM" target="_blank" href="mailto:MY_TICKET@MY_DOMAIN.COM">MY_TICKET@MY_DOMAIN.COM</a> " > $MAIL</span><span lang="EN-US" style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "To:
<a rel="nofollow" ymailto="mailto:DIRECTORS@MYDOMAIN.COM" target="_blank" href="mailto:DIRECTORS@MYDOMAIN.COM">DIRECTORS@MYDOMAIN.COM</a>" >> $MAIL</span><span lang="EN-US" style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "MIME-Version: 1.0" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo 'Content-type: text/html; charset=iso-8859-1' >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo " boundary=`date +%s`/rt.MY.DOMAIN.COM" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "Subject: All open Tickets:$(date +%d/%m/%y)" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "<html>" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "<HEAD>" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "</HEAD>" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "<BODY>" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "<span style=\'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D\'>" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "<table>">> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">/usr/bin/rt ls "Status != resolved AND Status != report AND Status != plantao AND Status != stalled" -f id,subject,queue,status,owner,lastupdated |iconv
-f UTF-8 -t ISO8859-1 > /tmp/rel.tmp</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">while read line ; do</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> echo "<span style='color:#000000'><TR><TD style='background:#D2EAF1;padding:0cm 5.4pt 0cm 5.4pt'>$line</TD></TR></span" | sed "s/ /<TD style='background:#D2EAF1'>/g"</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">done < /tmp/rel.tmp >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "</table>">> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "</BODY>" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">echo "</html>" >> $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">/usr/sbin/sendmail -t < $MAIL</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;">
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><b><span style="font-size:10.0pt;color:black;">De:</span></b><span style="font-size:10.0pt;color:black;">
<a rel="nofollow" ymailto="mailto:rt-users-bounces@lists.bestpractical.com" target="_blank" href="mailto:rt-users-bounces@lists.bestpractical.com">rt-users-bounces@lists.bestpractical.com</a> [<a rel="nofollow" ymailto="mailto:rt-users-bounces@lists.bestpractical.com" target="_blank" href="mailto:rt-users-bounces@lists.bestpractical.com">mailto:rt-users-bounces@lists.bestpractical.com</a>]
<b>Em nome de </b>Asanka Gunasekera<br>
<b>Enviada em:</b> sexta-feira, 10 de maio de 2013 05:48<br>
<b>Para:</b> <a rel="nofollow" ymailto="mailto:rt-users@lists.bestpractical.com" target="_blank" href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a><br>
<b>Assunto:</b> [rt-users] Generate end of the day report and email</span><span style="color:black;"></span></div>
</div>
</div>
</div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
<div>
<div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span style="color:black;">Hi, is there any way to auto generate end of the day report and emal this to management (all open, all new etc)</span></div>
</div>
</div>
<div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
</div>
<div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span style="color:black;">I am using RT4 and oracle database on redhat</span></div>
</div>
</div>
<div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
</div>
<div>
<div>
<div class="yiv3441943405MsoNormal" style="background:white;"><span style="color:black;">Thanks and Regards</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="yiv3441943405MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="color:black;"><br>
<br>
<br>
-- <br>
RT Training in Seattle, June 19-20: <a rel="nofollow" target="_blank" href="http://bestpractical.com/training">
http://bestpractical.com/training</a></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div><br><br></div> </div> </div> </div></body></html>