<?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: Cannot scp files to another server in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467679#M360719</link>
    <description>Hi Fenglin,&lt;BR /&gt;&lt;BR /&gt;Your check points:&lt;BR /&gt;&lt;BR /&gt;1]Make sure that you should ve host entry both server in /etc/hosts.&lt;BR /&gt;&lt;BR /&gt;2]Please check ssh is working properly.&lt;BR /&gt;&lt;BR /&gt;3]check traceroute between source and destination ,as well as telnet with 22 port is working properly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;++&lt;BR /&gt;  YMP</description>
    <pubDate>Tue, 28 Jul 2009 03:10:31 GMT</pubDate>
    <dc:creator>Yogesh M Puranik</dc:creator>
    <dc:date>2009-07-28T03:10:31Z</dc:date>
    <item>
      <title>Cannot scp files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467676#M360716</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I want to scp some files to another server&lt;BR /&gt;&lt;BR /&gt;ssh: Could not resolve hostname audfile2_2006Sep30_12: no address associated with name&lt;BR /&gt;&lt;BR /&gt;I am able to ping to the other server but I encounter the error above while scp the files.The hosts file looks ok.&lt;BR /&gt;&lt;BR /&gt;Source directory : HP-UX server&lt;BR /&gt;Target directory : Linux server&lt;BR /&gt;&lt;BR /&gt;Please advice.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Feng Lin</description>
      <pubDate>Tue, 28 Jul 2009 02:22:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467676#M360716</guid>
      <dc:creator>Fenglin</dc:creator>
      <dc:date>2009-07-28T02:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot scp files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467677#M360717</link>
      <description>&lt;!--!*#--&gt;&amp;gt; The hosts file looks ok.&lt;BR /&gt;&lt;BR /&gt;Great, but I can't see it, and I don't trust&lt;BR /&gt;you.  I also can't see your "scp" command.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ssh: Could not resolve hostname&lt;BR /&gt;&amp;gt; audfile2_2006Sep30_12: no address&lt;BR /&gt;&amp;gt; associated with name&lt;BR /&gt;&lt;BR /&gt;"scp" seems to think that that's a host name.&lt;BR /&gt;If you thought that that was a file name,&lt;BR /&gt;then I'd guess that your "scp" command is&lt;BR /&gt;defective.  Perhaps if my psychic powers&lt;BR /&gt;were stronger, then I might not need to&lt;BR /&gt;guess.  Or, if you showed what you actually&lt;BR /&gt;did, ...&lt;BR /&gt;&lt;BR /&gt;"scp -h"?  "man scp"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Source directory : HP-UX server&lt;BR /&gt;&amp;gt; Target directory : Linux server&lt;BR /&gt;&lt;BR /&gt;Not very complete descriptions of these&lt;BR /&gt;systems, or their software, either.</description>
      <pubDate>Tue, 28 Jul 2009 02:54:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467677#M360717</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-07-28T02:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot scp files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467678#M360718</link>
      <description>which is ur target host&lt;BR /&gt;&lt;BR /&gt;nslookup is fine?? try with IP....&lt;BR /&gt;&lt;BR /&gt;#scp file username@IP:/path_to_put&lt;BR /&gt;this should ask for passwd....&lt;BR /&gt;if any error try doing normal ssh is thats working.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Kapil+</description>
      <pubDate>Tue, 28 Jul 2009 03:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467678#M360718</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2009-07-28T03:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot scp files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467679#M360719</link>
      <description>Hi Fenglin,&lt;BR /&gt;&lt;BR /&gt;Your check points:&lt;BR /&gt;&lt;BR /&gt;1]Make sure that you should ve host entry both server in /etc/hosts.&lt;BR /&gt;&lt;BR /&gt;2]Please check ssh is working properly.&lt;BR /&gt;&lt;BR /&gt;3]check traceroute between source and destination ,as well as telnet with 22 port is working properly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;++&lt;BR /&gt;  YMP</description>
      <pubDate>Tue, 28 Jul 2009 03:10:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467679#M360719</guid>
      <dc:creator>Yogesh M Puranik</dc:creator>
      <dc:date>2009-07-28T03:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot scp files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467680#M360720</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;It's because the files that I want to transfer contain semi-colons. The filenames are for e.g filename_date_12_00:00.txt&lt;BR /&gt;&lt;BR /&gt;That's why it complained about the hostnames.&lt;BR /&gt;&lt;BR /&gt;Any idea how to replace the semi-colon by an underscore for selected files in that directory?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;Feng Lin&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jul 2009 04:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467680#M360720</guid>
      <dc:creator>Fenglin</dc:creator>
      <dc:date>2009-07-28T04:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot scp files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467681#M360721</link>
      <description>&lt;!--!*#--&gt;&amp;gt; It's because the files that I want to&lt;BR /&gt;&amp;gt; transfer contain semi-colons.&lt;BR /&gt;&lt;BR /&gt;Why didn't I guess that?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The filenames are for e.g&lt;BR /&gt;&amp;gt; filename_date_12_00:00.txt&lt;BR /&gt;&lt;BR /&gt;I don't see a semi-colon anywhere in that&lt;BR /&gt;name.&lt;BR /&gt;&lt;BR /&gt;Normally, one can quote (using apostrophes or&lt;BR /&gt;quotation marks) or escape (using&lt;BR /&gt;backslashes) any shell-special characters in&lt;BR /&gt;a file name.  I might be able to show you&lt;BR /&gt;how to do this in your command, but I'm still&lt;BR /&gt;not psychic, and you still haven't shown your&lt;BR /&gt;command.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] I also can't see your "scp" command.&lt;BR /&gt;&lt;BR /&gt;Did you not read this?  Did you think I was&lt;BR /&gt;joking?  Are you trying to waste everyone's&lt;BR /&gt;time?  Is there something secret about your&lt;BR /&gt;"scp" command, and you're afraid of the CIA?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Any idea how to replace the semi-colon by&lt;BR /&gt;&amp;gt; an underscore for selected files in that&lt;BR /&gt;&amp;gt; directory?&lt;BR /&gt;&lt;BR /&gt;bash$ echo 'a;b;c' | sed -e 's/;/_/g'&lt;BR /&gt;a_b_c&lt;BR /&gt;&lt;BR /&gt;But I don't really know what you're trying to&lt;BR /&gt;do, so I don't know how you might use this&lt;BR /&gt;method.</description>
      <pubDate>Tue, 28 Jul 2009 05:12:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467681#M360721</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-07-28T05:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot scp files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467682#M360722</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Still u have not given the command u r using.&lt;BR /&gt;&lt;BR /&gt;Also if u have embedded special chars. in file name just put the file name in single quotes.&lt;BR /&gt;&lt;BR /&gt;eg. '&lt;FILE_NAME&gt;' &lt;BR /&gt;eg. 'adfd###????!!!!;;;;::::&amp;gt;&amp;gt;&amp;gt;'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pl. give the syntax u are using. So that we can help u.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Santosh&lt;/FILE_NAME&gt;</description>
      <pubDate>Tue, 28 Jul 2009 05:14:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467682#M360722</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2009-07-28T05:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot scp files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467683#M360723</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;ok, Let's say I have a lot of files with naming convention, filename_2006Mar27_12:00.gz in a specific directory. I want to change all the files in that directory from filename_2006Mar27_12:00.gz to filename_2006Mar27_12_00.gz (That is an example)&lt;BR /&gt;&lt;BR /&gt;Regarding the scp issue, its been resolved because once I replace the : with _ , I will be able to scp to the linux server. I tested and it worked.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Feng Lin</description>
      <pubDate>Tue, 28 Jul 2009 06:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467683#M360723</guid>
      <dc:creator>Fenglin</dc:creator>
      <dc:date>2009-07-28T06:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot scp files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467684#M360724</link>
      <description>&lt;!--!*#--&gt;&amp;gt; ok, Let's say I have a lot of files with&lt;BR /&gt;&amp;gt; naming convention,&lt;BR /&gt;&amp;gt; filename_2006Mar27_12:00.gz in a specific&lt;BR /&gt;&amp;gt; directory. I want to change all the files&lt;BR /&gt;&amp;gt; in that directory from&lt;BR /&gt;&amp;gt; filename_2006Mar27_12:00.gz to&lt;BR /&gt;&amp;gt; filename_2006Mar27_12_00.gz (That is an&lt;BR /&gt;&amp;gt; example)&lt;BR /&gt;&lt;BR /&gt;You may think that that's clear, but it's&lt;BR /&gt;not.  For example:&lt;BR /&gt;&lt;BR /&gt;Do you want to rename all the files in that&lt;BR /&gt;directory with ":" in the name?&lt;BR /&gt;&lt;BR /&gt;Do you want to rename all the files in that&lt;BR /&gt;directory with "_2006Mar27_" and ":" in the&lt;BR /&gt;name?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'd probably write a short shell script which&lt;BR /&gt;uses "sed" to transform a file name (as shown&lt;BR /&gt;above), and then uses "mv" to rename the&lt;BR /&gt;file.  Then I might use "find -exec" to run&lt;BR /&gt;that shell script against the file names&lt;BR /&gt;which "find" finds.  This assumes that I knew&lt;BR /&gt;which file names to ask "find" to find, which&lt;BR /&gt;I don't.</description>
      <pubDate>Tue, 28 Jul 2009 10:13:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467684#M360724</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-07-28T10:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot scp files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467685#M360725</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;for file in `ls -1 filename_*`&lt;BR /&gt;do&lt;BR /&gt;newname=`echo ${file} | sed -e "1,1s/:/_/"`&lt;BR /&gt;mv ${file} ${newname}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;this will rename all files suiting the naming convention you gave. If they have more than one colon ":" in the name, only the first one will be replaced by and underscore"_". If you have more than one colon and replace all of them, then modify the sed directive between double quotes as follows:&lt;BR /&gt;"1,1s/:/_/g"&lt;BR /&gt;note the "g" at the end&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Also, please take some time to rate the answers you have received in the past. Here are the questions you asked and received answers without assigning any points:&lt;BR /&gt; &lt;BR /&gt;&lt;A href="https://forums11.itrc.hp.com/service/forums/publicProfile.do?userId=WW74647&amp;amp;forumId=1" target="_blank"&gt;https://forums11.itrc.hp.com/service/forums/publicProfile.do?userId=WW74647&amp;amp;forumId=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Your point assignment ratio, sits at an abysmal 22% level</description>
      <pubDate>Tue, 28 Jul 2009 12:14:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-scp-files-to-another-server/m-p/4467685#M360725</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-07-28T12:14:16Z</dc:date>
    </item>
  </channel>
</rss>

