<?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: Cron email destination in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550324#M27985</link>
    <description>The most straightforward way would be to have your cron script itself mail all output to the various users. On easy method would be to redirect all stdout and stderr within the cron script to a temp file and as the last operation of the cron job mail a copy of this file to the users in question and then delete the temp file.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
    <pubDate>Mon, 09 Jul 2001 15:47:34 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2001-07-09T15:47:34Z</dc:date>
    <item>
      <title>Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550322#M27983</link>
      <description>We have cron set up using the default of sending its output to e-mail.  This requires the root user to be the only person that can view or delete these emails.  I would like to allow other users to view or delete these as a daily maintenance activity, but do not want to allow them to login as root, due to security reasons.&lt;BR /&gt;&lt;BR /&gt;Is there a way to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 09 Jul 2001 15:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550322#M27983</guid>
      <dc:creator>Randy Hagedorn</dc:creator>
      <dc:date>2001-07-09T15:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550323#M27984</link>
      <description>what about changing the permission on the email file ? what about a permission of 777&lt;BR /&gt;This will allow everyone to read write and execute. &lt;BR /&gt;chmod 777 file name &lt;BR /&gt;&lt;BR /&gt;Richard&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jul 2001 15:46:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550323#M27984</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-07-09T15:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550324#M27985</link>
      <description>The most straightforward way would be to have your cron script itself mail all output to the various users. On easy method would be to redirect all stdout and stderr within the cron script to a temp file and as the last operation of the cron job mail a copy of this file to the users in question and then delete the temp file.&lt;BR /&gt;&lt;BR /&gt;Clay</description>
      <pubDate>Mon, 09 Jul 2001 15:47:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550324#M27985</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-09T15:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550325#M27986</link>
      <description>Hey Mr A. &lt;BR /&gt;would this work using a .forward file?&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Mon, 09 Jul 2001 15:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550325#M27986</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-07-09T15:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550326#M27987</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can create a ".forward" file under the root user (where your processes run) and forward the resulting email to the control of another user who could then read and/or delete the mail.&lt;BR /&gt;&lt;BR /&gt;Simply create a .forward file with the user's name in it and put it in the home directory ("/" for root, usually).  It need only be readable by its owner.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 09 Jul 2001 16:04:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550326#M27987</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-07-09T16:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550327#M27988</link>
      <description>But with the .forward set up.&lt;BR /&gt;Everyone would have to edit or delete their own file.But they will have all the same info.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Mon, 09 Jul 2001 16:09:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550327#M27988</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-07-09T16:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550328#M27989</link>
      <description>If you don't mind these people reading -all- of root's mail, you could have a cron script fire off daily that would append /var/mail/root to /var/mail/user.&lt;BR /&gt;&lt;BR /&gt;Other than that I would do what someone already mentioned - have the job send the mail to appropriate parties in the first place.&lt;BR /&gt;&lt;BR /&gt;By the way, since people come and go, I rarely hard-code usernames into scripts for email.  Instead hard-code an alias and put the users in your aliases file.&lt;BR /&gt;&lt;BR /&gt;For example, in /etc/mail/aliases:&lt;BR /&gt; backupadm:  user1,user2&lt;BR /&gt;&lt;BR /&gt;Then your scripts would send mail to backupadm.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jul 2001 16:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550328#M27989</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-07-09T16:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550329#M27990</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;how about having more cron-users? Only possible if root-privileges are not required though.&lt;BR /&gt;&lt;BR /&gt;BTW I fully agree with Steve Martin: avoid having email-addresses scattered around your system: use aliases! People don't only come and go, sometimes email addresses have to be changed due to company policy, reorganization, take-over, ... . Bonus points here ;)&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Mon, 09 Jul 2001 18:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550329#M27990</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-07-09T18:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550330#M27991</link>
      <description>sjips, little lapsus :(&lt;BR /&gt;Please read Fred Martin instead of "Steve" Martin&lt;BR /&gt;mea culpa&lt;BR /&gt;Thierry.</description>
      <pubDate>Tue, 10 Jul 2001 05:33:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550330#M27991</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-07-10T05:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550331#M27992</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can try this one too. Let the cron job create a temporary say  "temp_file" file and update it for all the  std output messages by using the redirector &amp;gt;&amp;gt;. Then at the end of the script u can use the mail option to mail it to as many user you want. Use this at the end of the script being run as cron job&lt;BR /&gt;&lt;BR /&gt;mailx -s Subject mail-address &amp;lt; temp_file&lt;BR /&gt;&lt;BR /&gt;this way you won't redirect all the mails addressed to root to the specified user. If you crate a .forward file in the root home directory you end up forwarding all root mails to the user(s) specified in the .forward file. To forward the cronjob output to multiple users you can repete the mailx line with another mai_address.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jul 2001 16:03:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550331#M27992</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-07-10T16:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cron email destination</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550332#M27993</link>
      <description>I would like to thank all those that replied to my query with E-mail.  My limited knowledge about the capabilities of cron and mail has been greatly increased with all of the remarks. The forums are a tremendous supply of help.&lt;BR /&gt;&lt;BR /&gt;Thanks again,  Dewy</description>
      <pubDate>Tue, 10 Jul 2001 16:20:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cron-email-destination/m-p/2550332#M27993</guid>
      <dc:creator>Randy Hagedorn</dc:creator>
      <dc:date>2001-07-10T16:20:37Z</dc:date>
    </item>
  </channel>
</rss>

