<?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: help on scp script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482580#M496563</link>
    <description>&lt;P&gt;Yes, that should be all that is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just make sure that the user that is running the scp is that one that is allowed to login as root on the remote server.&lt;/P&gt;</description>
    <pubDate>Wed, 21 May 2014 14:24:49 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2014-05-21T14:24:49Z</dc:date>
    <item>
      <title>help on scp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482386#M496560</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following script, that is not working:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;for files in `ls -lrt | awk '{if ($8 == "2013")print $0}'`
do
/usr/bin/scp -p $files root@10.1.20.31:/fs1/bscsrtx/BSCS_iX/WORK/MP/UDR/RLH/M16S11A4V1A11VRLUCO/ERR/OLD_FILES/
done&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;so I am trying to copy all 2013 files to another server, so when I run it:&lt;/P&gt;&lt;PRE&gt;Password:
1: No such file or directory
Password:&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;keeps on asking for password....&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 12:02:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482386#M496560</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2014-05-21T12:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: help on scp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482562#M496561</link>
      <description>&lt;P&gt;You need to set up SSH so that it can log into the remote server without asking for a password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The is done by appropriately setting up public / private key access between the servers.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 14:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482562#M496561</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2014-05-21T14:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: help on scp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482574#M496562</link>
      <description>Thank you, that's the only thing needed right?</description>
      <pubDate>Wed, 21 May 2014 14:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482574#M496562</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2014-05-21T14:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: help on scp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482580#M496563</link>
      <description>&lt;P&gt;Yes, that should be all that is needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just make sure that the user that is running the scp is that one that is allowed to login as root on the remote server.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 14:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482580#M496563</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2014-05-21T14:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: help on scp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482620#M496564</link>
      <description>yes, its root</description>
      <pubDate>Wed, 21 May 2014 14:52:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6482620#M496564</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2014-05-21T14:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: help on scp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6483002#M496565</link>
      <description>&lt;P&gt;&amp;gt;I am trying to copy all 2013 files to another server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't have zillions of files, you can use this to copy all in one scp command:&lt;/P&gt;&lt;P&gt;files=$(ls -lrt | awk '{if ($8 == "2013") print $9}')&lt;/P&gt;&lt;P&gt;/usr/bin/scp -p $files root@10.1.20.31:/fs1/bscsrtx/BSCS_iX/WORK/MP/UDR/RLH/M16S11A4V1A11VRLUCO/ERR/OLD_FILES/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: In your original script, you should also be printing $9, the filename and not the whole line.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 17:48:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6483002#M496565</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-05-21T17:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: help on scp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6483494#M496566</link>
      <description>just 84 files</description>
      <pubDate>Thu, 22 May 2014 07:37:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6483494#M496566</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2014-05-22T07:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: help on scp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6483498#M496567</link>
      <description>but in this case do I have also to setup connections without passwords?</description>
      <pubDate>Thu, 22 May 2014 07:38:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6483498#M496567</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2014-05-22T07:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: help on scp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6483878#M496568</link>
      <description>&lt;P&gt;The method of passing the list of files to copy to the scp copy command has nothing to do with how scp actually functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to use SCP to copy the files without having to enter a password, then YES you do need to set up public / private keys to enable passwordless login.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2014 13:43:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6483878#M496568</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2014-05-22T13:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: help on scp script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6484148#M496569</link>
      <description>&lt;P&gt;&amp;gt;but in this case do I have also to setup connections without passwords?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, you'll only need to type in the password once, each time you run the script.&amp;nbsp; :-)&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2014 15:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-scp-script/m-p/6484148#M496569</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2014-05-22T15:44:03Z</dc:date>
    </item>
  </channel>
</rss>

