<?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: Mail from SAM Backup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243475#M174075</link>
    <description>The root mail you receive is where cron sends the job's output - so just redirect all output from the cron job to a mail to your helpdesk account.  E.g.&lt;BR /&gt;&lt;BR /&gt;00 22 * * * /sam/backupcommand &amp;gt; /usr/bin/mailx -s "Backup report" helpdesk@mail.com 2&amp;gt;&amp;amp;1</description>
    <pubDate>Thu, 08 Apr 2004 08:36:26 GMT</pubDate>
    <dc:creator>John Kelly_3</dc:creator>
    <dc:date>2004-04-08T08:36:26Z</dc:date>
    <item>
      <title>Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243471#M174071</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a 10.20 machine that runs a SAM created backup everynight.  It used to just email root with the results upon completion but now we want it to email to an internet address.&lt;BR /&gt;&lt;BR /&gt;I have altered the file:&lt;BR /&gt;&lt;BR /&gt;/var/spool/cron/crontabs/root so that instead of it going to root only it goes to:&lt;BR /&gt;helpdesk@mycomp.com,root&lt;BR /&gt;&lt;BR /&gt;However, the internet address never receives the mail but the usual local root mailbox does.  If I do a manual:&lt;BR /&gt;&lt;BR /&gt;mailx -s "subject line" helpdesk@mycomp.com,root &amp;lt; /somefile&lt;BR /&gt;&lt;BR /&gt;both recipients get the mail OK, so I know sendmail is working OK&lt;BR /&gt;&lt;BR /&gt;Does anyone have clue why it is behaving oddly, or a workaround perhaps&lt;BR /&gt;&lt;BR /&gt;Thanks a lot&lt;BR /&gt;Guy</description>
      <pubDate>Thu, 08 Apr 2004 06:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243471#M174071</guid>
      <dc:creator>Guy Humphreys</dc:creator>
      <dc:date>2004-04-08T06:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243472#M174072</link>
      <description>This methodology works for me.&lt;BR /&gt;&lt;BR /&gt;change&lt;BR /&gt;mailx -s "subject line" helpdesk@mycomp.com,root &amp;lt; /somefile&lt;BR /&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;BR /&gt;/somefile 2&amp;gt;&amp;amp;1 | mailx -s "subject line" helpdesk@mycomp.com,root &lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 08 Apr 2004 07:03:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243472#M174072</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-04-08T07:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243473#M174073</link>
      <description>mailx -s "subject line" helpdesk@mycomp.com,root &amp;lt; /somefile&lt;BR /&gt;&lt;BR /&gt;should work. Does the email for helpdesk sits in mailq? What do you get in mail.log?&lt;BR /&gt;&lt;BR /&gt;You can try as follows.&lt;BR /&gt;echo "some_file"|mailx -s "" helpdesk@mycomp.com, root&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 08 Apr 2004 07:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243473#M174073</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-04-08T07:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243474#M174074</link>
      <description>Thanks for the quick responses guys, however I don't think I have explained myself properly.&lt;BR /&gt;&lt;BR /&gt;The mailx command I mention above works for me, I only used it to check that sendmail was working.  What is NOT working is the sam backup email notification.  the backup is triggered from cron as below:&lt;BR /&gt;&lt;BR /&gt;00 1 * * * /usr/sam/lbin/br_backup MAG FULL Y /dev/rmt/1m /etc/sam/br/graphXBAa12086 helpdesk@comp.com,root Y 1 N &amp;gt; /var/tmp/SAM_br_msgs 2&amp;gt;&amp;amp;1      #sambackup&lt;BR /&gt;&lt;BR /&gt;the fbackup jobs runs and emails the results to root but does not email them to the internet address helpdesk@comp.com&lt;BR /&gt;&lt;BR /&gt;When you suggest altering my mailx line do you mean the script within br_backup?  I am reticent to go 'mucking' about with this HP script (unless of course there is no other course of action)&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;Guy</description>
      <pubDate>Thu, 08 Apr 2004 08:26:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243474#M174074</guid>
      <dc:creator>Guy Humphreys</dc:creator>
      <dc:date>2004-04-08T08:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243475#M174075</link>
      <description>The root mail you receive is where cron sends the job's output - so just redirect all output from the cron job to a mail to your helpdesk account.  E.g.&lt;BR /&gt;&lt;BR /&gt;00 22 * * * /sam/backupcommand &amp;gt; /usr/bin/mailx -s "Backup report" helpdesk@mail.com 2&amp;gt;&amp;amp;1</description>
      <pubDate>Thu, 08 Apr 2004 08:36:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243475#M174075</guid>
      <dc:creator>John Kelly_3</dc:creator>
      <dc:date>2004-04-08T08:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243476#M174076</link>
      <description>Sorry, that should be a | not a &amp;gt;&lt;BR /&gt;E.g.&lt;BR /&gt;00 22 * * * /sam/backupcommand | /usr/bin/mailx -s "Backup report" helpdesk@mail.com 2&amp;gt;&amp;amp;1</description>
      <pubDate>Thu, 08 Apr 2004 08:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243476#M174076</guid>
      <dc:creator>John Kelly_3</dc:creator>
      <dc:date>2004-04-08T08:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243477#M174077</link>
      <description>Thanks for the quick replies guys, Sorry this msg is so late, I have been working on other things.&lt;BR /&gt;&lt;BR /&gt;Have not managed to implement your suggestions as the problem seems to have disappeared on its own!!!  Issue must have been elsewhere.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Guy</description>
      <pubDate>Fri, 30 Apr 2004 03:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243477#M174077</guid>
      <dc:creator>Guy Humphreys</dc:creator>
      <dc:date>2004-04-30T03:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243478#M174078</link>
      <description>Hi Guy,&lt;BR /&gt;&lt;BR /&gt;The br_backup script states that the argument $6 is for the user that should be sent email, rather than a list of users.  You could modify the script, as you are aware it would no longer be supported by HP - and it's possible that patching could overwrite your changes.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.</description>
      <pubDate>Fri, 30 Apr 2004 04:11:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243478#M174078</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2004-04-30T04:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243479#M174079</link>
      <description>I think I have it, did not realise that argument $6 could only have one user and not a list - Thanks for pointing that out Darren.&lt;BR /&gt;&lt;BR /&gt;How about I use an alias instead?  Think that should work&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Guy</description>
      <pubDate>Fri, 30 Apr 2004 04:19:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243479#M174079</guid>
      <dc:creator>Guy Humphreys</dc:creator>
      <dc:date>2004-04-30T04:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243480#M174080</link>
      <description>Yes - that sounds a better solution.  You could probably rewrite the script to cope with a list, but the alias idea is neater.  Once you start modifying system scripts it can be pretty easy to forget just which ones have changed!&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.</description>
      <pubDate>Fri, 30 Apr 2004 04:32:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243480#M174080</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2004-04-30T04:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mail from SAM Backup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243481#M174081</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just looking your mail it seems everything is perfect except the cron file you have modified. I think you have manually modified the cron. Either Do crontab -e or restart the cron. If you do manually modification then cron will take previous one. &lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Tapas</description>
      <pubDate>Fri, 30 Apr 2004 04:35:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mail-from-sam-backup/m-p/3243481#M174081</guid>
      <dc:creator>Tapas Jha</dc:creator>
      <dc:date>2004-04-30T04:35:52Z</dc:date>
    </item>
  </channel>
</rss>

