<?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: shell function + &amp;quot;&amp;lt;&amp;lt;&amp;quot; got error. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012091#M96941</link>
    <description>no solution.... case close!!</description>
    <pubDate>Tue, 19 Dec 2006 04:35:38 GMT</pubDate>
    <dc:creator>Warren_9</dc:creator>
    <dc:date>2006-12-19T04:35:38Z</dc:date>
    <item>
      <title>shell function + "&lt;&lt;" got error.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012084#M96934</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;my shell script contain a ftp function &lt;BR /&gt;&lt;BR /&gt;ftp ()&lt;BR /&gt;{ &lt;BR /&gt;ftp HOSTNAME &amp;lt;&amp;lt; EOF &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;username....&lt;BR /&gt;...&lt;BR /&gt;..&lt;BR /&gt;EOF&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;don't know why it got a syntax error ...&lt;BR /&gt;&lt;BR /&gt;"Syntax error at line 15 : `&amp;lt;&amp;lt;' is not matched."&lt;BR /&gt;&lt;BR /&gt;any idea?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;WAR.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2006 03:14:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012084#M96934</guid>
      <dc:creator>Warren_9</dc:creator>
      <dc:date>2006-11-03T03:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: shell function + "&lt;&lt;" got error.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012085#M96935</link>
      <description>Hi,&lt;BR /&gt;change your function name from ftp (reserved name). Also shouldn't HOSTNAME be $HOSTNAME&lt;BR /&gt;For earlier solutions please see:&lt;BR /&gt;#! /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;ip_address=a.b.c.d&lt;BR /&gt;user=user&lt;BR /&gt;password=password&lt;BR /&gt;&lt;BR /&gt;ftp -n $ip_address &amp;lt;&amp;lt; EOF&lt;BR /&gt;user $user $password&lt;BR /&gt;cd /tmp&lt;BR /&gt;lcd /tmp&lt;BR /&gt;bin&lt;BR /&gt;mput *&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=991609" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=991609&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2006 03:47:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012085#M96935</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-03T03:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: shell function + "&lt;&lt;" got error.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012086#M96936</link>
      <description>I think the error is in space before EOF. &lt;BR /&gt;&lt;BR /&gt;here is from example :&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;     ftp -n host &amp;gt; ftp.log &amp;lt;&amp;lt;-EOF&lt;BR /&gt;        user ftp ftp_password&lt;BR /&gt;        asc&lt;BR /&gt;        get test123&lt;BR /&gt;        quit&lt;BR /&gt;     EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Fri, 03 Nov 2006 03:47:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012086#M96936</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2006-11-03T03:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: shell function + "&lt;&lt;" got error.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012087#M96937</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the ftp script work if it is not call in the function.&lt;BR /&gt;&lt;BR /&gt;my problem is when the "&amp;lt;&amp;lt;" use in the function , it got an syntax error...&lt;BR /&gt;&lt;BR /&gt;any idea?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;WAR.</description>
      <pubDate>Fri, 03 Nov 2006 03:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012087#M96937</guid>
      <dc:creator>Warren_9</dc:creator>
      <dc:date>2006-11-03T03:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: shell function + "&lt;&lt;" got error.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012088#M96938</link>
      <description>Warren,&lt;BR /&gt;please test:&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;ftpr ()&lt;BR /&gt;{ &lt;BR /&gt;echo " Starting ftpr"&lt;BR /&gt;/usr/bin/ftp -n $1 &amp;lt;&amp;lt; EOF &amp;gt; ftpdata.log  2&amp;gt;&amp;amp;1&lt;BR /&gt;user ftpuserid ftpuserpwd&lt;BR /&gt;ls&lt;BR /&gt;quit&lt;BR /&gt;EOF&lt;BR /&gt;echo "Leaving ftpr"&lt;BR /&gt;}&lt;BR /&gt;echo "Before the call"&lt;BR /&gt;ftpr 10.10.10.10&lt;BR /&gt;echo "After the call"&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2006 04:18:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012088#M96938</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-03T04:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: shell function + "&lt;&lt;" got error.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012089#M96939</link>
      <description>&lt;!--!*#--&gt;Hi Warren:&lt;BR /&gt;&lt;BR /&gt;While somewhat misleading, this error simply indicates that your EOF marker is *not* absolutely flush-left without prepended spaces.&lt;BR /&gt;&lt;BR /&gt;Your 'EOF' must begin in column-1 without any leading spaces or tabs!&lt;BR /&gt;&lt;BR /&gt;If you use the syntax:&lt;BR /&gt;&lt;BR /&gt;... &amp;lt;&amp;lt;- EOF&lt;BR /&gt;...&lt;BR /&gt;        EOF&lt;BR /&gt;&lt;BR /&gt;...where only *tabs* are used to indent,  you may beautify your code.  Note the "-" appended to the redirection.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 03 Nov 2006 05:55:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012089#M96939</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-11-03T05:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: shell function + "&lt;&lt;" got error.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012090#M96940</link>
      <description>Hi Warren,&lt;BR /&gt;&lt;BR /&gt;I think your contruct results in a recursive call of your function:&lt;BR /&gt;The 'ftp' in your 'ftp' function will NOT call /usr/bin/ftp but the funtion itself again.&lt;BR /&gt;CHange the name of your function or you /usr/bin/ftp in the function body.&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;PS: Nevertheless your 'EOF' marker has to be left adjusted.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 03 Nov 2006 06:05:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012090#M96940</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-11-03T06:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: shell function + "&lt;&lt;" got error.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012091#M96941</link>
      <description>no solution.... case close!!</description>
      <pubDate>Tue, 19 Dec 2006 04:35:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-function-quot-lt-lt-quot-got-error/m-p/5012091#M96941</guid>
      <dc:creator>Warren_9</dc:creator>
      <dc:date>2006-12-19T04:35:38Z</dc:date>
    </item>
  </channel>
</rss>

