<?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: tar problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321978#M340792</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;A chain like this works to reach "server-3" from "server-2" having been initiated on "server-1":&lt;BR /&gt;&lt;BR /&gt;# ssh host2 "uname -a;hostname;ssh host3 uname -a;hostname"&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 11 Dec 2008 20:45:14 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-12-11T20:45:14Z</dc:date>
    <item>
      <title>tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321975#M340789</link>
      <description>I have tried to do tar and untar of files between remoter servers but its not working anyone can suggest me whether the way want is possible or not...&lt;BR /&gt;&lt;BR /&gt;Being in server1, Im trying to to tar files from server2 and untar directly in server3 in one line. here the code i have tried.&lt;BR /&gt;&lt;BR /&gt;ssh -l username 2ndservername tar -cf - /home/foldername|ssh -l usernrame 3rdservername  " cd /home/tuxtnk/copied/ &amp;amp;&amp;amp; tar -xvf -"&lt;BR /&gt;&lt;BR /&gt;My another code is working which tar file in the server1 (i.e. from the current server) and untar in the server3 but i am trying to between 2 different remote machines from the script in the current machine.&lt;BR /&gt;&lt;BR /&gt;tar -cf - /home/foldername|ssh -l usernrame 3rdservername  " cd /home/tuxtnk/copied/ &amp;amp;&amp;amp; tar -xvf -"&lt;BR /&gt;&lt;BR /&gt;I will really appreciate the help&lt;BR /&gt;thanks in advance&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Dec 2008 20:22:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321975#M340789</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2008-12-11T20:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321976#M340790</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Please check the response code on this command:&lt;BR /&gt;&lt;BR /&gt;tar -cf - /home/foldername|ssh -l usernrame 3rdservername " cd /home/tuxtnk/copied/ &amp;amp;&amp;amp; tar -xvf -"&lt;BR /&gt;&lt;BR /&gt;Looks like a syntax issue to me.&lt;BR /&gt;&lt;BR /&gt;maybe -xvf - &lt;SPACE&gt; xvf&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/SPACE&gt;</description>
      <pubDate>Thu, 11 Dec 2008 20:28:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321976#M340790</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-12-11T20:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321977#M340791</link>
      <description>This is not syntax isse because the second one is working fine. i dont have any problem on that one. that was my typing mistake sorry for that but my problem is in the first script i have written&lt;BR /&gt;i.e.&lt;BR /&gt;&lt;BR /&gt;ssh -l username 3rdservername tar -cf - /home/foldetotar|ssh -l username 2ndservername " cd /home/foldertountar &amp;amp;&amp;amp; tar -xvf -"&lt;BR /&gt;&lt;BR /&gt;The error I got is &lt;BR /&gt;&lt;BR /&gt;Pseudo-terminal will not be allocated because stdin is not a terminal.&lt;BR /&gt;ssh: Could not resolve hostname 2ndservername cd /home/foldertountar &amp;amp;&amp;amp; tar -xvf : host nor service provided, or not known&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Dec 2008 20:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321977#M340791</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2008-12-11T20:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321978#M340792</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;A chain like this works to reach "server-3" from "server-2" having been initiated on "server-1":&lt;BR /&gt;&lt;BR /&gt;# ssh host2 "uname -a;hostname;ssh host3 uname -a;hostname"&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 11 Dec 2008 20:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321978#M340792</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-11T20:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321979#M340793</link>
      <description>Hi JRF&lt;BR /&gt;&lt;BR /&gt;I dint get your solution. could you please explain it to me syntatically so that i can try in my terminal. I will really appreciate it&lt;BR /&gt;&lt;BR /&gt;thanks alot&lt;BR /&gt;pareshan</description>
      <pubDate>Thu, 11 Dec 2008 20:53:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321979#M340793</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2008-12-11T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321980#M340794</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I didnt get your solution. could you please explain it to me syntatically so that i can try in my terminal. I will really appreciate it&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The point was that you are not piping anything as you tried to do, but rather are "hopping" server-to-server, and running something when you "land".&lt;BR /&gt;&lt;BR /&gt;I think you need to 'scp' the tar archive in one step and then in another step un-tar the copied archive.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Dec 2008 21:03:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321980#M340794</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-11T21:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321981#M340795</link>
      <description>I got your point actually I thought the same way at first. In 2 steps i can do it. so that means there is now way that i can do it in one step??</description>
      <pubDate>Thu, 11 Dec 2008 21:18:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321981#M340795</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2008-12-11T21:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321982#M340796</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; so that means there is no[w] way that i can do it in one step??&lt;BR /&gt;&lt;BR /&gt;Define "one step".  How much do you want to cram on a commandline?  Do yourself a favor and write a simple script in a file that you then launch just like any command.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 11 Dec 2008 21:38:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321982#M340796</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-11T21:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321983#M340797</link>
      <description>Actually I am writting a script and this is just a small portion of it. My script is becoming bigger and bigger and I have to use this kind of commands several times thats why I was trying to find a way to make it short so that I can make it shorter. Anyway I really appreciate your response. I will try to be in contact with you because I know moving further again I will have problems much more important and complex than this one.&lt;BR /&gt;thank you very much  JRF&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Dec 2008 21:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321983#M340797</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2008-12-11T21:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321984#M340798</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; My script is becoming bigger and bigger and I have to use this kind of commands several times thats why I was trying to find a way to make it short &lt;BR /&gt;&lt;BR /&gt;That's why you write functions or subroutines and pass arguments to them.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 11 Dec 2008 22:52:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321984#M340798</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-11T22:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: tar problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321985#M340799</link>
      <description>&amp;gt;Being on server1, I'm trying to to tar files from server2 and untar directly on server3 in one line.&lt;BR /&gt;&lt;BR /&gt;I would question why you want to do this.  It would be better if you had server1 tell server2 to send directly to server3.  Don't make server1 sweat, just have it give orders.</description>
      <pubDate>Fri, 12 Dec 2008 00:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-problem/m-p/4321985#M340799</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-12T00:55:46Z</dc:date>
    </item>
  </channel>
</rss>

