<?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 from cron in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403493#M201313</link>
    <description>You cannot use echo, it expects a tty on the other side of stdout; try print instead. You may need to put all that into a script so you can specify ksh as the shell environment to get print to go.&lt;BR /&gt;&lt;BR /&gt;mark</description>
    <pubDate>Tue, 19 Oct 2004 12:28:39 GMT</pubDate>
    <dc:creator>Mark Greene_1</dc:creator>
    <dc:date>2004-10-19T12:28:39Z</dc:date>
    <item>
      <title>Sendmail from cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403489#M201309</link>
      <description>Users and root can use sendmail to send an attachment from the command line but when the same command is executed from cron it fails.  The cron environment is the same as the users.</description>
      <pubDate>Tue, 19 Oct 2004 11:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403489#M201309</guid>
      <dc:creator>jason thompson_1</dc:creator>
      <dc:date>2004-10-19T11:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail from cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403490#M201310</link>
      <description>You have to remember that cron does not run the .profile or any other "." environment files, so things like paths and environment variables may need to be specifically set-up for the cron process in question.&lt;BR /&gt;&lt;BR /&gt;Also, background processes run without a tty, so any command that expects to be interacting with a terminal won't be, and will fail.&lt;BR /&gt;&lt;BR /&gt;How are they trying to do the attachments?&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Tue, 19 Oct 2004 11:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403490#M201310</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-10-19T11:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail from cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403491#M201311</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Are you using the absolute path for the commands. That may be the problem since cron does not source the .profile for the login ids. you can ask it to source the .profile, by adding ". /home_dir/.profile;" in the command line.&lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Oct 2004 11:53:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403491#M201311</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-10-19T11:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail from cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403492#M201312</link>
      <description>The environment is set within cron to the same parameters that the users use.  The actual command is (echo "Subject: Test List"; echo "From: Sales"; echo "To: user@domain.com"; echo "Your group list is attached to this email." ; uuencode /PATH TO FILE/FILE.DBF ) | /usr/sbin/sendmail user@domain.com</description>
      <pubDate>Tue, 19 Oct 2004 12:16:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403492#M201312</guid>
      <dc:creator>jason thompson_1</dc:creator>
      <dc:date>2004-10-19T12:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail from cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403493#M201313</link>
      <description>You cannot use echo, it expects a tty on the other side of stdout; try print instead. You may need to put all that into a script so you can specify ksh as the shell environment to get print to go.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Tue, 19 Oct 2004 12:28:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403493#M201313</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-10-19T12:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail from cron</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403494#M201314</link>
      <description>The attached script is in use with my cron system.&lt;BR /&gt;&lt;BR /&gt;I don not believe there are any environment requirements since full path is supposed to be used in this script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 19 Oct 2004 13:07:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-from-cron/m-p/3403494#M201314</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-19T13:07:17Z</dc:date>
    </item>
  </channel>
</rss>

