<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi, can any one help me have tried all what I can find by googling and the help of you, I not sure what is going on</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Thanks and Regards</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style:
 normal;">Asanka</div><div><br></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> Asanka Gunasekera <asanka_gunasekera@yahoo.co.uk><br> <b><span style="font-weight: bold;">To:</span></b> Diaulas Castro <diaulas.castro@intersolution.inf.br> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 30 May 2013, 11:31<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: RES: RES: RES: [rt-users] RES:  Generate end of the day report and email<br> </font> </div> <div class="y_msg_container"><br><div id="yiv2080507470"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); 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 attached is my config file</span></div><div><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;">Best Regards</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div><font size="3">Asanka</font></div><div><br></div><div></div></div></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">  <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> Tuesday, 28 May 2013, 17:07<br> <b><span style="font-weight:bold;">Subject:</span></b> RES: RES: RES: [rt-users] RES:  Generate end of the day report and
 email<br> </font> </div> <div class="yiv2080507470y_msg_container"><br><div id="yiv2080507470">

 
 
<style><!--
#yiv2080507470   
 filtered  {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
#yiv2080507470 filtered  {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
#yiv2080507470 filtered  {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv2080507470 filtered  {font-family:Consolas;panose-1:2 11 6 9 2 2 4 3 2 4;}
#yiv2080507470   
 p.yiv2080507470MsoNormal, #yiv2080507470  li.yiv2080507470MsoNormal, #yiv2080507470  div.yiv2080507470MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  a:link, #yiv2080507470  span.yiv2080507470MsoHyperlink
        {
color:blue;text-decoration:underline;}
#yiv2080507470  a:visited, #yiv2080507470  span.yiv2080507470MsoHyperlinkFollowed
        {
color:purple;text-decoration:underline;}
#yiv2080507470  pre
        {

margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}
#yiv2080507470  p.yiv2080507470MsoAcetate, #yiv2080507470  li.yiv2080507470MsoAcetate, #yiv2080507470  div.yiv2080507470MsoAcetate
        {

margin:0cm;margin-bottom:.0001pt;font-size:8.0pt;font-family:"Tahoma", "sans-serif";}
#yiv2080507470  span.yiv2080507470Pr-formataoHTMLChar
        {


font-family:Consolas;}
#yiv2080507470  p.yiv2080507470msoacetate, #yiv2080507470  li.yiv2080507470msoacetate, #yiv2080507470  div.yiv2080507470msoacetate
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msonormal, #yiv2080507470  li.yiv2080507470msonormal, #yiv2080507470  div.yiv2080507470msonormal
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msochpdefault, #yiv2080507470  li.yiv2080507470msochpdefault, #yiv2080507470  div.yiv2080507470msochpdefault
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msonormal1, #yiv2080507470  li.yiv2080507470msonormal1, #yiv2080507470  div.yiv2080507470msonormal1
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msoacetate1, #yiv2080507470  li.yiv2080507470msoacetate1, #yiv2080507470  div.yiv2080507470msoacetate1
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msochpdefault1, #yiv2080507470  li.yiv2080507470msochpdefault1, #yiv2080507470  div.yiv2080507470msochpdefault1
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msonormal2, #yiv2080507470  li.yiv2080507470msonormal2, #yiv2080507470  div.yiv2080507470msonormal2
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msoacetate2, #yiv2080507470  li.yiv2080507470msoacetate2, #yiv2080507470  div.yiv2080507470msoacetate2
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msonormal3, #yiv2080507470  li.yiv2080507470msonormal3, #yiv2080507470  div.yiv2080507470msonormal3
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msochpdefault2, #yiv2080507470  li.yiv2080507470msochpdefault2, #yiv2080507470  div.yiv2080507470msochpdefault2
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msonormal11, #yiv2080507470  li.yiv2080507470msonormal11, #yiv2080507470  div.yiv2080507470msonormal11
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msoacetate11, #yiv2080507470  li.yiv2080507470msoacetate11, #yiv2080507470  div.yiv2080507470msoacetate11
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msochpdefault11, #yiv2080507470  li.yiv2080507470msochpdefault11, #yiv2080507470  div.yiv2080507470msochpdefault11
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  span.yiv2080507470msohyperlink
        {}
#yiv2080507470  span.yiv2080507470msohyperlinkfollowed
        {}
#yiv2080507470  span.yiv2080507470pr-formataohtmlchar
        {}
#yiv2080507470  span.yiv2080507470msohyperlink2
        {}
#yiv2080507470  span.yiv2080507470msohyperlinkfollowed2
        {}
#yiv2080507470  span.yiv2080507470msohyperlink11
        {}
#yiv2080507470  span.yiv2080507470msohyperlinkfollowed11
        {}
#yiv2080507470  span.yiv2080507470estilodeemail1711
        {}
#yiv2080507470  span.yiv2080507470textodebalochar11
        {}
#yiv2080507470  span.yiv2080507470estilodeemail311
        {}
#yiv2080507470  span.yiv2080507470textodebalochar2
        {}
#yiv2080507470  span.yiv2080507470pr-formataohtmlchar1
        {}
#yiv2080507470  span.yiv2080507470estilodeemail50
        {}
#yiv2080507470  span.yiv2080507470textodebalochar
        {}
#yiv2080507470  p.yiv2080507470msonormal4, #yiv2080507470  li.yiv2080507470msonormal4, #yiv2080507470  div.yiv2080507470msonormal4
        {
margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  span.yiv2080507470msohyperlink1
        {
color:blue;text-decoration:underline;}
#yiv2080507470  span.yiv2080507470msohyperlinkfollowed1
        {
color:purple;text-decoration:underline;}
#yiv2080507470  p.yiv2080507470msoacetate3, #yiv2080507470  li.yiv2080507470msoacetate3, #yiv2080507470  div.yiv2080507470msoacetate3
        {
margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  span.yiv2080507470pr-formataohtmlchar2
        {
font-family:Consolas;}
#yiv2080507470  p.yiv2080507470msonormal5, #yiv2080507470  li.yiv2080507470msonormal5, #yiv2080507470  div.yiv2080507470msonormal5
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msochpdefault3, #yiv2080507470  li.yiv2080507470msochpdefault3, #yiv2080507470  div.yiv2080507470msochpdefault3
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msonormal12, #yiv2080507470  li.yiv2080507470msonormal12, #yiv2080507470  div.yiv2080507470msonormal12
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msoacetate12, #yiv2080507470  li.yiv2080507470msoacetate12, #yiv2080507470  div.yiv2080507470msoacetate12
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msochpdefault12, #yiv2080507470  li.yiv2080507470msochpdefault12, #yiv2080507470  div.yiv2080507470msochpdefault12
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msonormal21, #yiv2080507470  li.yiv2080507470msonormal21, #yiv2080507470  div.yiv2080507470msonormal21
        {
margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  span.yiv2080507470msohyperlink21
        {
color:blue;text-decoration:underline;}
#yiv2080507470  span.yiv2080507470msohyperlinkfollowed21
        {
color:purple;text-decoration:underline;}
#yiv2080507470  p.yiv2080507470msoacetate21, #yiv2080507470  li.yiv2080507470msoacetate21, #yiv2080507470  div.yiv2080507470msoacetate21
        {
margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msonormal31, #yiv2080507470  li.yiv2080507470msonormal31, #yiv2080507470  div.yiv2080507470msonormal31
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msochpdefault21, #yiv2080507470  li.yiv2080507470msochpdefault21, #yiv2080507470  div.yiv2080507470msochpdefault21
        {

margin-right:0cm;
margin-left:0cm;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  p.yiv2080507470msonormal111, #yiv2080507470  li.yiv2080507470msonormal111, #yiv2080507470  div.yiv2080507470msonormal111
        {
margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  span.yiv2080507470msohyperlink111
        {
color:blue;text-decoration:underline;}
#yiv2080507470  span.yiv2080507470msohyperlinkfollowed111
        {
color:purple;text-decoration:underline;}
#yiv2080507470  p.yiv2080507470msoacetate111, #yiv2080507470  li.yiv2080507470msoacetate111, #yiv2080507470  div.yiv2080507470msoacetate111
        {
margin:0cm;margin-bottom:.0001pt;font-size:8.0pt;font-family:"Tahoma", "sans-serif";}
#yiv2080507470  span.yiv2080507470estilodeemail17111
        {
font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv2080507470  span.yiv2080507470textodebalochar111
        {
font-family:"Tahoma", "sans-serif";}
#yiv2080507470  p.yiv2080507470msochpdefault111, #yiv2080507470  li.yiv2080507470msochpdefault111, #yiv2080507470  div.yiv2080507470msochpdefault111
        {

margin-right:0cm;
margin-left:0cm;font-size:10.0pt;font-family:"Times New Roman", "serif";}
#yiv2080507470  span.yiv2080507470estilodeemail3111
        {
font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv2080507470  span.yiv2080507470textodebalochar21
        {
font-family:"Tahoma", "sans-serif";}
#yiv2080507470  span.yiv2080507470pr-formataohtmlchar11
        {
font-family:"Courier New";}
#yiv2080507470  span.yiv2080507470estilodeemail501
        {
font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv2080507470  span.yiv2080507470textodebalochar1
        {
font-family:"Tahoma", "sans-serif";}
#yiv2080507470  span.yiv2080507470EstiloDeEmail74
        {
font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv2080507470  span.yiv2080507470TextodebaloChar
        {


font-family:"Tahoma", "sans-serif";}
#yiv2080507470  .yiv2080507470MsoChpDefault
        {
font-size:10.0pt;}
#yiv2080507470 filtered  {
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
#yiv2080507470  div.yiv2080507470WordSection1
        {}
--></style>

<div>
<div class="yiv2080507470WordSection1">
<div class="yiv2080507470MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">Send your RT_SiteConfig.pm</span></div> 
<div class="yiv2080507470MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">  </span></div> 
<div class="yiv2080507470MsoNormal"><span 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="yiv2080507470MsoNormal"><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> terça-feira, 28 de maio de 2013 01:34<br>
<b>Para:</b> Diaulas Castro; rt-users@lists.bestpractical.com<br>
<b>Assunto:</b> Re: RES: RES: [rt-users] RES: Generate end of the day report and email</span></div> 
</div>
</div>
<div class="yiv2080507470MsoNormal">  </div> 
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">Hi Diaulas, I have read this document, below is my configuration</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;"><VirtualHost *:80></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">    ServerAdmin <a rel="nofollow" ymailto="mailto:webmaster@dummy-host.example.com" target="_blank" href="mailto:webmaster@dummy-host.example.com">
webmaster@dummy-host.example.com</a></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">    ServerName rt.mydomain.com</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">    ErrorLog "logs/virtual_host_80_for-mail_error.log"</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">    CustomLog "logs/virtual_host_80_for-mail.log" common</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">        AddDefaultCharset UTF-8</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">        DocumentRoot "/usr/local/rt-ora/share/html"</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">        <Location /></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">            Order allow,deny</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">            Allow from all</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">            SetHandler perl-script</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">            PerlResponseHandler Plack::Handler::Apache2</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">            PerlSetVar psgi_app /usr/local/rt-ora/sbin/rt-server</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">        </Location></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">        <Perl></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">            use Plack::Handler::Apache2;</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">            Plack::Handler::Apache2->preload("/usr/local/rt-ora/sbin/rt-server");</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">        </Perl></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;"></VirtualHost></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">And I used below parameers</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">RTUSER=root</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">RTPASSWORD=112211</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">RTSERVER=http://localhost</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">Please tell me what I am doing wrong</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">  </span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">Thanks and Best Regards</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">Asanka</span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal"><span style="color:black;">  </span></div> 
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" align="center" style="text-align:center;background:white;">
<span style="color:black;">
<hr size="1" width="100%" align="center">
</span></div>
<div class="yiv2080507470MsoNormal" 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> Asanka Gunasekera <</span><span style="font-size:10.0pt;color:black;"><a rel="nofollow" ymailto="mailto:asanka_gunasekera@yahoo.co.uk" target="_blank" href="mailto:asanka_gunasekera@yahoo.co.uk"><span lang="EN-US">asanka_gunasekera@yahoo.co.uk</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;">"
 <</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> Monday, 27 May 2013, 17:20<br>
<b>Subject:</b> RES: RES: [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="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;">  </span></div> 
<div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">Hello Asanka,</span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" 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="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">From
<a rel="nofollow" target="_blank" href="http://requesttracker.wikia.com/wiki/CLI">http://requesttracker.wikia.com/wiki/CLI</a> 
</span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" 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="yiv2080507470MsoNormal" style="background:white;"><i><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">export RTUSER=your.rtusername</span></i><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><i><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">export RTPASSWD=your rt password</span></i><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><i><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">export RTSERVER=your.rt3.installation</span></i><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" 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="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">Try with /rt after domain or anything you have configured on Apache.</span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">  RTSERVER=http://localhost/rt</span><span style="color:black;"></span></div> 
</div>
<div>
<div class="yiv2080507470MsoNormal" 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="yiv2080507470MsoNormal" 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="yiv2080507470MsoNormal" style="background:white;"><span 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="yiv2080507470MsoNormal" style="background:white;"><b><span style="font-size:10.0pt;color:black;">De:</span></b><span style="font-size:10.0pt;color:black;"> Asanka Gunasekera [<a rel="nofollow" ymailto="mailto:asanka_gunasekera@yahoo.co.uk" target="_blank" href="mailto:asanka_gunasekera@yahoo.co.uk">mailto:asanka_gunasekera@yahoo.co.uk</a>]
<br>
<b>Enviada em:</b> segunda-feira, 27 de maio de 2013 07:59<br>
<b>Para:</b> Diaulas Castro; <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> Re: RES: [rt-users] RES: Generate end of the day report and email</span><span style="color:black;"></span></div> 
</div>
</div>
</div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">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>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><i><span style="color:black;">export RTSERVER=http://localhost</span></i><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">and do </span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><i><span style="color:black;">rt ls </span></i><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">it prompt me for a password once I enter the password and hit enter I get below error</span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><i><span style="color:black;">Query:Status!='resolved' and Status!='rejected'</span></i><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><i><span style="color:black;">   Strong encryption not available, switched off by externalauth=0</span></i><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><i><span style="color:black;">   Password will be sent to localhost unencrypted</span></i><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><i><span style="color:black;">   Press CTRL-C now if you do not want to continue</span></i><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><i><span style="color:black;">Password:</span></i><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><i><span style="color:black;">rt: Server error: Forbidden (403)</span></i><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;">As the URL I tried
</span><span style="color:black;"><a rel="nofollow" target="_blank" href="http://x.x.x.x/"><span lang="EN-US">http://x.x.x.x</span></a></span><span lang="EN-US" style="color:black;"> as well but with the same error</span><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;"> </span><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">Thanks and Regards</span></div> 
</div>
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" align="center" style="text-align:center;background:white;">
<span style="color:black;">
<hr size="1" width="100%" align="center">
</span></div>
<div>
<div class="yiv2080507470MsoNormal" 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> Asanka Gunasekera <</span><span style="font-size:10.0pt;color:black;"><a rel="nofollow" ymailto="mailto:asanka_gunasekera@yahoo.co.uk" target="_blank" href="mailto:asanka_gunasekera@yahoo.co.uk"><span lang="EN-US">asanka_gunasekera@yahoo.co.uk</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;">" <</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> Wednesday, 22 May 2013, 17:20<br>
<b>Subject:</b> RES: [rt-users] RES: Generate end of the day report and email</span><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;"> </span><span style="color:black;"></span></div> 
</div>
<div>
<div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><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><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div class="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">Try to add on top of script:</span><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:10.0pt;color:black;">export RTSERVER=your.rt.installation</span><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div class="yiv2080507470MsoNormal" 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>
<div class="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">if you got error try to execute a simple /usr/bin/rt ls TICKET_NUMBER</span><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div class="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D;">That script relies on output of RT CLI command.</span><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div class="yiv2080507470MsoNormal" 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 style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;">
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><b><span style="font-size:10.0pt;color:black;">De:</span></b><span style="font-size:10.0pt;color:black;"> Asanka Gunasekera [<a rel="nofollow" ymailto="mailto:asanka_gunasekera@yahoo.co.uk" target="_blank" href="mailto:asanka_gunasekera@yahoo.co.uk">mailto:asanka_gunasekera@yahoo.co.uk</a>]
<br>
<b>Enviada em:</b> quarta-feira, 22 de maio de 2013 08:38<br>
<b>Para:</b> Diaulas Castro; <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> Re: [rt-users] RES: Generate end of the day report and email</span><span style="color:black;"></span></div> 
</div>
</div>
</div>
</div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
<div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">Query:Status!='resolved' and Status!='rejected'</span></div> 
</div>
</div>
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">rt: Server error: Forbidden (403)</span></div> 
</div>
</div>
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">Thank you and Best Regards</span></div> 
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" align="center" style="text-align:center;background:white;">
<span style="color:black;">
<hr size="1" width="100%" align="center">
</span></div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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 style="color:black;"></span></div> 
</div>
</div>
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span lang="EN-US" style="color:black;"> </span><span style="color:black;"></span></div> 
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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 style="color:black;"></span></div> 
</div>
</div>
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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 style="color:black;"></span></div> 
</div>
</div>
</div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;">
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" 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>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">I am using RT4 and oracle database on redhat</span></div> 
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;">Thanks and Regards</span></div> 
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="margin-bottom:12.0pt;">
<div>
<div class="yiv2080507470MsoNormal" style="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>
</div>
</div>
<div style="margin-bottom:12.0pt;">
<div class="yiv2080507470MsoNormal" style="background:white;"><span style="color:black;"> </span></div> 
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="yiv2080507470MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="color:black;">  </span></div> 
</div>
</div>
</div>
</div>
</div>
</div>

</div><br><br></div> </div> </div>  </div></div></div><br><br></div> </div> </div>  </div></body></html>