<?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: sendmail Q in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-q/m-p/4466610#M360591</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If we can assume that the directory contains only files you want to mail, then you could do something simple like:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;cd /path || exit 1&lt;BR /&gt;for FILE in $(ls)&lt;BR /&gt;do&lt;BR /&gt;    mailx -s "Please review" himacs &amp;lt; ${FILE}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;...which would send one file per mail.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 25 Jul 2009 13:00:58 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-07-25T13:00:58Z</dc:date>
    <item>
      <title>sendmail Q</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-q/m-p/4466609#M360590</link>
      <description>Hi gurus,&lt;BR /&gt;&lt;BR /&gt;I have a script which takes the login details from the number of servers and output will be copied to a folder.So after execution this folder will contain atleast 7 files.My Q is how could i send these 7 files to my mail id using sendmail at a shot.&lt;BR /&gt;&lt;BR /&gt;main part of script given below&lt;BR /&gt;&lt;BR /&gt;ssh noor@$i /home/noor/login.sh &amp;gt;&amp;gt;/syslogs/logins/$i.$DATE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;plz advise on this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;himacs&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Jul 2009 12:10:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-q/m-p/4466609#M360590</guid>
      <dc:creator>himacs</dc:creator>
      <dc:date>2009-07-25T12:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail Q</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-q/m-p/4466610#M360591</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If we can assume that the directory contains only files you want to mail, then you could do something simple like:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;cd /path || exit 1&lt;BR /&gt;for FILE in $(ls)&lt;BR /&gt;do&lt;BR /&gt;    mailx -s "Please review" himacs &amp;lt; ${FILE}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;...which would send one file per mail.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Jul 2009 13:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-q/m-p/4466610#M360591</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-07-25T13:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail Q</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-q/m-p/4466611#M360592</link>
      <description>HI James,&lt;BR /&gt;&lt;BR /&gt;Thanx for the reply..&lt;BR /&gt;&lt;BR /&gt;Instead of writing new script ,can we add mailx command with the below script..&lt;BR /&gt;&lt;BR /&gt;ssh noor@$i /home/noor/login.sh &amp;gt;&amp;gt;/syslogs/logins/$i.$DATE&lt;BR /&gt;&lt;BR /&gt;so that with single line or script, the all works be done.like executing login script,directing otput to a folder and again sending the same with mailx..&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;himacs</description>
      <pubDate>Sat, 25 Jul 2009 13:16:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-q/m-p/4466611#M360592</guid>
      <dc:creator>himacs</dc:creator>
      <dc:date>2009-07-25T13:16:42Z</dc:date>
    </item>
  </channel>
</rss>

