<?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 Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124029#M677822</link>
    <description>Here is another thread about scripting ftp with the "\" char.&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1234894" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1234894&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You may have to use: USER "$USER"</description>
    <pubDate>Sat, 09 Aug 2008 02:41:09 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-08-09T02:41:09Z</dc:date>
    <item>
      <title>Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124022#M677815</link>
      <description>Hello Admins,&lt;BR /&gt;&lt;BR /&gt;I am trying to ftp files from HP-UX server to Windows 2003 server using one of the domain account to login to windows 2003 server.  Here is my script:&lt;BR /&gt;&lt;BR /&gt;Domain is xyz&lt;BR /&gt;User is abc&lt;BR /&gt;Password is 123&lt;BR /&gt;Server name is Server1&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;HOST='Server1'&lt;BR /&gt;USER='xyz\\abc'&lt;BR /&gt;PASSWD='123'&lt;BR /&gt;ftp -n $HOST &amp;lt;&lt;END_SCRIPT&gt;&lt;/END_SCRIPT&gt;quote USER $USER&lt;BR /&gt;quote PASS $PASSWD&lt;BR /&gt;lcd /test/dbdata/&lt;BR /&gt;cd "FTP\Dbdata"&lt;BR /&gt;mput *.csv&lt;BR /&gt;quit&lt;BR /&gt;END_SCRIPT&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But it throws an error stating below:&lt;BR /&gt;&lt;BR /&gt;User xyz\abc cannot log in&lt;BR /&gt;Local directory now /test/dbdata&lt;BR /&gt;Please login with USER and PASS. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance..&lt;BR /&gt;&lt;BR /&gt;vthiru</description>
      <pubDate>Fri, 08 Aug 2008 17:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124022#M677815</guid>
      <dc:creator>vthiru</dc:creator>
      <dc:date>2008-08-08T17:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124023#M677816</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Drop the word "quote" in front of the user and password commands.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 08 Aug 2008 17:58:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124023#M677816</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-08T17:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124024#M677817</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;I removed quote..but still getting the same error..&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;vthiru</description>
      <pubDate>Fri, 08 Aug 2008 18:03:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124024#M677817</guid>
      <dc:creator>vthiru</dc:creator>
      <dc:date>2008-08-08T18:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124025#M677818</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Are you sure that your USER value is correct?  When I connect to a Windows' server my USER looks like "ddd/aaa" where ddd=domain and aaa=account.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 08 Aug 2008 18:13:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124025#M677818</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-08T18:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124026#M677819</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;I think so..bcoz when I connect it manually like this  &lt;BR /&gt;ftp -n &lt;SERVERNAME&gt;&lt;BR /&gt;user &lt;XYZ&gt; &lt;PASSWORD&gt;&lt;BR /&gt;&lt;BR /&gt;it is allowing me to login without any issues.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;vthiru&lt;BR /&gt;&lt;/PASSWORD&gt;&lt;/XYZ&gt;&lt;/SERVERNAME&gt;</description>
      <pubDate>Fri, 08 Aug 2008 18:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124026#M677819</guid>
      <dc:creator>vthiru</dc:creator>
      <dc:date>2008-08-08T18:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124027#M677820</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;This is odd.  I used your script, including the 'quote' command, and have no problems unless I supply an invalid account.  Then I get:&lt;BR /&gt;&lt;BR /&gt;User abc/xyz cannot log in.&lt;BR /&gt;Local directory now /tmp&lt;BR /&gt;Please login with USER and PASS.&lt;BR /&gt;Please login with USER and PASS.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 08 Aug 2008 18:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124027#M677820</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-08-08T18:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124028#M677821</link>
      <description>"I think so..bcoz when I connect it manually like this &lt;BR /&gt;ftp -n &lt;SERVERNAME&gt;&lt;BR /&gt;user &lt;XYZ&gt; &lt;PASSWORD&gt;&lt;BR /&gt;&lt;BR /&gt;it is allowing me to login without any issues."&lt;BR /&gt;=================================&lt;BR /&gt;&lt;BR /&gt;OK.  How many "\" are in the name, and what is the *EXACT* message you are getting?&lt;BR /&gt;"User xyz\abc cannot log in"&lt;BR /&gt;&lt;BR /&gt;it appears that you need more "\" in the variable in the script perhaps, as the name you TYPED doesn't appear to match the name in the error message you showed&lt;/PASSWORD&gt;&lt;/XYZ&gt;&lt;/SERVERNAME&gt;</description>
      <pubDate>Fri, 08 Aug 2008 19:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124028#M677821</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-08-08T19:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124029#M677822</link>
      <description>Here is another thread about scripting ftp with the "\" char.&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1234894" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1234894&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You may have to use: USER "$USER"</description>
      <pubDate>Sat, 09 Aug 2008 02:41:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124029#M677822</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-09T02:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124030#M677823</link>
      <description>Thanks All.  I figured it out that my password contains backslash.  Like this...94503hj\%94\%PHF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bcoz am able to login successfully with the account its password doesn't carry backslash. Please let me know is there any otherway I could make this script works without modifying the password.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;vthiru&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 09 Aug 2008 10:51:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124030#M677823</guid>
      <dc:creator>vthiru</dc:creator>
      <dc:date>2008-08-09T10:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124031#M677824</link>
      <description>&amp;gt;Please let me know is there any other way I could make this script works without modifying the password.&lt;BR /&gt;&lt;BR /&gt;You add an extra "\"s in your shell variable.</description>
      <pubDate>Sat, 09 Aug 2008 17:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124031#M677824</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-08-09T17:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124032#M677825</link>
      <description>Thanks Dennis,&lt;BR /&gt;&lt;BR /&gt;It worked. &lt;BR /&gt;&lt;BR /&gt;vthiru.</description>
      <pubDate>Mon, 11 Aug 2008 18:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/5124032#M677825</guid>
      <dc:creator>vthiru</dc:creator>
      <dc:date>2008-08-11T18:43:16Z</dc:date>
    </item>
  </channel>
</rss>

