<?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: FTP results send to root's email in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-results-send-to-root-s-email/m-p/3176807#M162178</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can take out "verbose" from your ftp commands.&lt;BR /&gt;&lt;BR /&gt;You can also redirect the output messages to /dev/null as below. Here both stdout and stderr go to /dev/null. But you can adjust it to however you want.&lt;BR /&gt;&lt;BR /&gt;ftp -n ${HOST1} &amp;lt;&amp;lt; EOF &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;..&lt;BR /&gt;..&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;To redirect standard out messages to a log file but errors to /dev/null&lt;BR /&gt;&lt;BR /&gt;ftp -n ${HOST1} &amp;lt;&amp;lt; EOF &amp;gt;&amp;gt; $LOGFILE 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;The other way&lt;BR /&gt;&lt;BR /&gt;ftp -n ${HOST1} &amp;lt;&amp;lt; EOF &amp;gt; /dev/null 2&amp;gt;$LOGFILE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;Should work&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Wed, 28 Jan 2004 14:42:04 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-01-28T14:42:04Z</dc:date>
    <item>
      <title>FTP results send to root's email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-results-send-to-root-s-email/m-p/3176805#M162176</link>
      <description>I have a script that FTPs some files archive  files to another server.  The problem I have is that it sends a very long list of these files and the entire FTP process gets recorded in root's email.  I do not want it to go there, can anyone tell me what I can add to avoid this from happening (like how to send it to /dev/null?):&lt;BR /&gt;&lt;BR /&gt;FTP portion of the script.&lt;BR /&gt;++++++++++++++++++++++++++++++++++++++++++&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#FTP the compressed archives             &lt;BR /&gt;echo "`date` Start FTP of Oracle archive files to ${HOST1} "   &amp;gt;&amp;gt; ${LOGFILE}&lt;BR /&gt;ftp -n ${HOST1} &amp;lt;&amp;lt;-EOF&lt;BR /&gt;user ${USER} ${PASS}&lt;BR /&gt;cd ${RMTARCHDIR}&lt;BR /&gt;binary&lt;BR /&gt;verbose&lt;BR /&gt;mput arch*gz&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;++++++++++++++++++++++++++++++++++++++++++&lt;BR /&gt;&lt;BR /&gt;Thanks for any help!&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jan 2004 14:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-results-send-to-root-s-email/m-p/3176805#M162176</guid>
      <dc:creator>MAD_2</dc:creator>
      <dc:date>2004-01-28T14:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: FTP results send to root's email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-results-send-to-root-s-email/m-p/3176806#M162177</link>
      <description>Maybe:&lt;BR /&gt;&lt;BR /&gt;ftp -n ${HOST} &amp;lt;&amp;lt;-EOF &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Mic</description>
      <pubDate>Wed, 28 Jan 2004 14:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-results-send-to-root-s-email/m-p/3176806#M162177</guid>
      <dc:creator>Mic V.</dc:creator>
      <dc:date>2004-01-28T14:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: FTP results send to root's email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-results-send-to-root-s-email/m-p/3176807#M162178</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can take out "verbose" from your ftp commands.&lt;BR /&gt;&lt;BR /&gt;You can also redirect the output messages to /dev/null as below. Here both stdout and stderr go to /dev/null. But you can adjust it to however you want.&lt;BR /&gt;&lt;BR /&gt;ftp -n ${HOST1} &amp;lt;&amp;lt; EOF &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;..&lt;BR /&gt;..&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;To redirect standard out messages to a log file but errors to /dev/null&lt;BR /&gt;&lt;BR /&gt;ftp -n ${HOST1} &amp;lt;&amp;lt; EOF &amp;gt;&amp;gt; $LOGFILE 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;The other way&lt;BR /&gt;&lt;BR /&gt;ftp -n ${HOST1} &amp;lt;&amp;lt; EOF &amp;gt; /dev/null 2&amp;gt;$LOGFILE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;Should work&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 28 Jan 2004 14:42:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-results-send-to-root-s-email/m-p/3176807#M162178</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-01-28T14:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: FTP results send to root's email</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-results-send-to-root-s-email/m-p/3176808#M162179</link>
      <description>Great, thank you both!</description>
      <pubDate>Wed, 28 Jan 2004 15:00:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-results-send-to-root-s-email/m-p/3176808#M162179</guid>
      <dc:creator>MAD_2</dc:creator>
      <dc:date>2004-01-28T15:00:06Z</dc:date>
    </item>
  </channel>
</rss>

