<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MAILTO doesn't work with Crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582253#M230116</link>
    <description>Hi Allan,&lt;BR /&gt;&lt;BR /&gt;MAILTO should be a variable defined within the script.  This is how I'd put it in a script:&lt;BR /&gt;&lt;BR /&gt;MAILTO=xxx@domain.com&lt;BR /&gt;mailx -s "Test Mail" $MAILTO&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;ira</description>
    <pubDate>Wed, 13 Jul 2005 22:56:48 GMT</pubDate>
    <dc:creator>Isralyn Manalac_1</dc:creator>
    <dc:date>2005-07-13T22:56:48Z</dc:date>
    <item>
      <title>MAILTO doesn't work with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582250#M230113</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;I am trying to setup the mailto in my cron. I created a txt file cron_job1.job.Inside it are these entries:&lt;BR /&gt;&lt;BR /&gt;MAILTO=xxxx@domain.com&lt;BR /&gt;10 * * * * /home/group/do.sh&lt;BR /&gt;&lt;BR /&gt;but when i tried to add it using this command:&lt;BR /&gt;&lt;BR /&gt;crontab cron_job1.job&lt;BR /&gt;&lt;BR /&gt;i am getting this error:&lt;BR /&gt;MAILTO=xxxx@domain.com&lt;BR /&gt;crontab: error on previous line; unexpected character found in line.&lt;BR /&gt;&lt;BR /&gt;Pls. help me guys.</description>
      <pubDate>Wed, 13 Jul 2005 22:32:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582250#M230113</guid>
      <dc:creator>Allan Umandap</dc:creator>
      <dc:date>2005-07-13T22:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: MAILTO doesn't work with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582251#M230114</link>
      <description>Allan,&lt;BR /&gt;is MAILTO a defined variable to a mailx command ?&lt;BR /&gt;if not, this will not work.&lt;BR /&gt;&lt;BR /&gt;Why don't you try using mailx instead in your script do.sh&lt;BR /&gt;&lt;BR /&gt;Add the line mailx -s " subject of the email" xxxx@domain.com &amp;lt; outputfile&lt;BR /&gt;&lt;BR /&gt;and that should work&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;DP&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2005 22:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582251#M230114</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2005-07-13T22:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: MAILTO doesn't work with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582252#M230115</link>
      <description>Hi DP,&lt;BR /&gt;&lt;BR /&gt;Are you sayin that i should put MAILTO=xxxx@domain.com inside my script? I thought i just need to put this inside the cron txt i created.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 13 Jul 2005 22:45:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582252#M230115</guid>
      <dc:creator>Allan Umandap</dc:creator>
      <dc:date>2005-07-13T22:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: MAILTO doesn't work with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582253#M230116</link>
      <description>Hi Allan,&lt;BR /&gt;&lt;BR /&gt;MAILTO should be a variable defined within the script.  This is how I'd put it in a script:&lt;BR /&gt;&lt;BR /&gt;MAILTO=xxx@domain.com&lt;BR /&gt;mailx -s "Test Mail" $MAILTO&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;ira</description>
      <pubDate>Wed, 13 Jul 2005 22:56:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582253#M230116</guid>
      <dc:creator>Isralyn Manalac_1</dc:creator>
      <dc:date>2005-07-13T22:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: MAILTO doesn't work with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582254#M230117</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;I thought by default cron will send the results to root or anyone running the cron...how can i instead of sending it to /var/mail/xxxx forward the mail to my xxxx@domain.com&lt;BR /&gt;&lt;BR /&gt;thnx...</description>
      <pubDate>Wed, 13 Jul 2005 23:06:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582254#M230117</guid>
      <dc:creator>Allan Umandap</dc:creator>
      <dc:date>2005-07-13T23:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: MAILTO doesn't work with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582255#M230118</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The crontab line must look as follows:&lt;BR /&gt;10 * * * * export MAILTO=xxxx@domain.com; /home/group/do.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Thu, 14 Jul 2005 00:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582255#M230118</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2005-07-14T00:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: MAILTO doesn't work with Crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582256#M230119</link>
      <description>I think you refer to the MAILTO option in linux's crontab. I'm sorry to say that is a fairly new crontab option, I've only seen in crontab available on some linux distributions.&lt;BR /&gt;&lt;BR /&gt;For those to know: it sends the output of the crontab entries to the specified mailbox, not to the mailbox of the crontabs user.&lt;BR /&gt;&lt;BR /&gt;On HP-UX you should either do it in your crontab-script (as proposed by the others) or at the receiving end, create an alias for root in /etc/aliases or some forwarding from ~/.forward or using procmail to selectively handle root-s mail.</description>
      <pubDate>Thu, 11 Aug 2005 11:16:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mailto-doesn-t-work-with-crontab/m-p/3582256#M230119</guid>
      <dc:creator>C. Beerse_1</dc:creator>
      <dc:date>2005-08-11T11:16:23Z</dc:date>
    </item>
  </channel>
</rss>

