<?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 through script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111231#M91663</link>
    <description>And, if all you wish to do is fetch a file,&lt;BR /&gt;you might find wget easier to use.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/wget/wget.html" target="_blank"&gt;http://www.gnu.org/software/wget/wget.html&lt;/A&gt;</description>
    <pubDate>Thu, 29 May 2008 13:54:18 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2008-05-29T13:54:18Z</dc:date>
    <item>
      <title>FTP through script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111227#M91659</link>
      <description>Hi,&lt;BR /&gt;Please ignore my knowledge,I am very new to Unix&lt;BR /&gt;I am running following code to perform ftp from remote machine.&lt;BR /&gt;but i am getting an error -test1: Syntax error at line 4 : `&amp;lt;&amp;lt;' is not matched&lt;BR /&gt;please see the code -&lt;BR /&gt;ftpthefile()&lt;BR /&gt;{&lt;BR /&gt; ftp -n &amp;lt;&lt;EOT&gt;&lt;/EOT&gt; open 10.158.19.136&lt;BR /&gt; user gbx wbo\$2008&lt;BR /&gt; get /dnbusr1/gbx/audit/gb200804.txt /dnbusr1/gbx/gb200804.txt&lt;BR /&gt; bye&lt;BR /&gt; EOT&lt;BR /&gt; }&lt;BR /&gt; exit 0</description>
      <pubDate>Thu, 29 May 2008 11:25:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111227#M91659</guid>
      <dc:creator>Panpalia</dc:creator>
      <dc:date>2008-05-29T11:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: FTP through script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111228#M91660</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;check for spaces in front of the "second" EOT&lt;BR /&gt;They are not allowed.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Thu, 29 May 2008 11:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111228#M91660</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2008-05-29T11:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: FTP through script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111229#M91661</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Make sure that your end-of-file marker (the 'EOT' word) is flush left without leading whitespace.&lt;BR /&gt;&lt;BR /&gt;You may use leading *tab* characters only if you use '-&amp;lt;&lt;EOT&gt;&lt;/EOT&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 29 May 2008 11:38:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111229#M91661</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-29T11:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: FTP through script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111230#M91662</link>
      <description>This works:&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;ftpthefile()&lt;BR /&gt;{&lt;BR /&gt;ftp -n &amp;lt;&lt;EOT&gt;&lt;/EOT&gt;open 10.158.19.136&lt;BR /&gt;user gbx wbo\$2008&lt;BR /&gt;get /dnbusr1/gbx/audit/gb200804.txt /dnbusr1/gbx/gb200804.txt&lt;BR /&gt;bye&lt;BR /&gt;EOT&lt;BR /&gt;}&lt;BR /&gt;ftpthefile&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;BTW, I'd prefer to use .netrc:&lt;BR /&gt;&lt;BR /&gt;machine flinux1&lt;BR /&gt;login admin&lt;BR /&gt;password Adm1n&lt;BR /&gt;macdef init&lt;BR /&gt;ascii&lt;BR /&gt;by&lt;BR /&gt;quit&lt;BR /&gt;&lt;BR /&gt;Between macdef init and by you can put all needed commands and run just&lt;BR /&gt;ftp flinux1 &lt;BR /&gt;by the user in whos homedir you have such .netrc&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;</description>
      <pubDate>Thu, 29 May 2008 11:38:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111230#M91662</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2008-05-29T11:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: FTP through script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111231#M91663</link>
      <description>And, if all you wish to do is fetch a file,&lt;BR /&gt;you might find wget easier to use.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/wget/wget.html" target="_blank"&gt;http://www.gnu.org/software/wget/wget.html&lt;/A&gt;</description>
      <pubDate>Thu, 29 May 2008 13:54:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111231#M91663</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-05-29T13:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: FTP through script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111232#M91664</link>
      <description>Thanks everyone!!</description>
      <pubDate>Tue, 03 Jun 2008 11:23:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-through-script/m-p/5111232#M91664</guid>
      <dc:creator>Panpalia</dc:creator>
      <dc:date>2008-06-03T11:23:04Z</dc:date>
    </item>
  </channel>
</rss>

