<?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: missing data when cut/paste in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569884#M830976</link>
    <description>Raymundo,&lt;BR /&gt;&lt;BR /&gt;Apologies if this is an insulting answer, but I've made this mistake so I know how easy it is!&lt;BR /&gt;&lt;BR /&gt;Is the missing text at the beginning of the block? If so, maybe you've forgotten to type "i" for insert text or "o" to open a line. It will then only start copying when it encounters an i or an o.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
    <pubDate>Mon, 27 Jun 2005 03:42:38 GMT</pubDate>
    <dc:creator>MarkSyder</dc:creator>
    <dc:date>2005-06-27T03:42:38Z</dc:date>
    <item>
      <title>missing data when cut/paste</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569882#M830974</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i need help with a problem i am seeing&lt;BR /&gt;when i cut paste from a xwindow terminal&lt;BR /&gt;in one server to a second xterminal (ssh'd&lt;BR /&gt;to a busy HPUX) running vi, most of the&lt;BR /&gt;block is lost.&lt;BR /&gt;&lt;BR /&gt;Then, to test the network i wrote a small&lt;BR /&gt;c program (in HPUX server) to read&lt;BR /&gt;stdin and save it to a file and it&lt;BR /&gt;works fine, no characters are lost.&lt;BR /&gt;&lt;BR /&gt;is there a way to increase the stdin buffer size under HPUX and let vi catch up?&lt;BR /&gt;&lt;BR /&gt;raymundo</description>
      <pubDate>Thu, 23 Jun 2005 18:12:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569882#M830974</guid>
      <dc:creator>Systems Engineers</dc:creator>
      <dc:date>2005-06-23T18:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: missing data when cut/paste</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569883#M830975</link>
      <description>Hi Raymundo,&lt;BR /&gt;I used to get this problem all the time. For some reason, vi can't keep up with a large paste when you're connected to the target server over a network.&lt;BR /&gt;To get around this, on the server where you want to paste the text, do:&lt;BR /&gt;cat &amp;gt; temp.txt&lt;BR /&gt;Then do &lt;BR /&gt;vi temp.txt &lt;OTHERFILE&gt;&lt;BR /&gt;Yank the text from the first file and insert it in the other:&lt;BR /&gt;For instance, if the text you want is 100 lines long, then in temp.txt, type&lt;BR /&gt;"a100y&lt;BR /&gt;(doublequote100y - no spaces)&lt;BR /&gt;This copies 100 lines into buffer a&lt;BR /&gt;Then...&lt;BR /&gt;:n&lt;BR /&gt;to get to the next file, then put your cursor just before where you want to insert the text and type&lt;BR /&gt;"ap&lt;BR /&gt;Cheers&lt;BR /&gt;Gordon&lt;/OTHERFILE&gt;</description>
      <pubDate>Mon, 27 Jun 2005 03:35:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569883#M830975</guid>
      <dc:creator>Gordon  Morrison</dc:creator>
      <dc:date>2005-06-27T03:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: missing data when cut/paste</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569884#M830976</link>
      <description>Raymundo,&lt;BR /&gt;&lt;BR /&gt;Apologies if this is an insulting answer, but I've made this mistake so I know how easy it is!&lt;BR /&gt;&lt;BR /&gt;Is the missing text at the beginning of the block? If so, maybe you've forgotten to type "i" for insert text or "o" to open a line. It will then only start copying when it encounters an i or an o.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Mon, 27 Jun 2005 03:42:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569884#M830976</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-06-27T03:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: missing data when cut/paste</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569885#M830977</link>
      <description>Just copy the contents from one terminal and paste it in next as,&lt;BR /&gt;&lt;BR /&gt; terminal-2# cat &amp;gt; filename&lt;BR /&gt; paste it&lt;BR /&gt; ctr+d&lt;BR /&gt;&lt;BR /&gt; It will work easily instead of opening vi &lt;FILENAME&gt; i (insert) and all.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Mon, 27 Jun 2005 04:08:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569885#M830977</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-27T04:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: missing data when cut/paste</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569886#M830978</link>
      <description>I did not forgot to type "i" in vi and this&lt;BR /&gt;happend to users while using emacs too.&lt;BR /&gt;&lt;BR /&gt;I was hopping for some "magic" way to have a&lt;BR /&gt;larger input buffer and give the text editor&lt;BR /&gt;some time to catch up.&lt;BR /&gt;&lt;BR /&gt;Thankx anyway&lt;BR /&gt;&lt;BR /&gt;raymundo</description>
      <pubDate>Mon, 27 Jun 2005 12:25:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569886#M830978</guid>
      <dc:creator>Systems Engineers</dc:creator>
      <dc:date>2005-06-27T12:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: missing data when cut/paste</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569887#M830979</link>
      <description>unfortunately, copy and paste functionality in xterm is not ment to be used to copy huge chunks of text. I have never figured it out myself but I know for a fact that, it is dependent on the terminal emulator you are using. xterm, native to hpux has one of the lowest amount of buffers I have seen. My suggestion is to use an intel machine and use it with PuTTY in xterm emulation mode. I am yet to see it miss anything when pasting. Again, what I do, usually stays under 5KB at a time. &lt;BR /&gt;&lt;BR /&gt;if you need a anything larger than that, I suggest copying files from command line and using sed and awk to process them.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Jun 2005 12:34:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569887#M830979</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-06-27T12:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: missing data when cut/paste</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569888#M830980</link>
      <description>Actually, there is a solution. It is due to a missing setting in the default stty setup for /etc/profile. More than a decade ago, I saw this exact problem and looked for a reason and solution. The reason, as you might expect, is that the server is too busy to keep up with a long stream of characters. This is compounded by using Xwindows for simple text windows.&lt;BR /&gt; &lt;BR /&gt;The solution is easy: add the ixoff option to you stty setting in /etc/profile, something like this:&lt;BR /&gt; &lt;BR /&gt;/sbin/stty erase "^H" kill "^U" intr "^C" eof "^D" -parity ixon ixoff&lt;BR /&gt; &lt;BR /&gt;(you'll also see -parity, an extremely useful option, especially if you're using modems and/or serial ports). What is happening is that the telnet or ssh protocol sees an incoming stream of characters and knows when it is reaching a maximum string. At that moment, the driver is signaled to send a transmission stop code. In serial transmissions, this is the XOFF character, also known as the DC3 character (device control). XOFF is the CTRL-S character and if typed during a long listing, the system pauses until you type CTRL-Q (XON or DC1), or if the stty option IXANY is set, typing any character will resume transmission. This is also known as terminal pacing.&lt;BR /&gt; &lt;BR /&gt;In the telnet/ssh protocol, there is a similar protocol and is enabled with options: xon xoff and ixany. Although the actual XON/XOFF characters are not used, the effect is the same. The server must have ixon (set by default) and ixoff set and now you can paste hundreds of lines of text into vi or any other program without loss of text. You can immediately test this with:&lt;BR /&gt; &lt;BR /&gt;stty ixoff&lt;BR /&gt;stty -a&lt;BR /&gt; &lt;BR /&gt;Since you're using Xwindows, be sure you are really logging in as a normal shell user and running /etc/profile and $HOME/.profile (which is not the default). The secret to getting this behavior is to login to the server that is providing your copy(s) of xterm (hpterm or dtterm) and create $HOME/.Xdefaults like this:&lt;BR /&gt; &lt;BR /&gt;echo "*loginShell:true" &amp;gt;&amp;gt; $HOME/.Xdefaults&lt;BR /&gt; &lt;BR /&gt;then start your terminal program (xterm hpterm or dtterm). You should now see the 'normal' HP-UX login messages from your profiles. Check for the right settings with stty -a (or stty -a | grep xo)</description>
      <pubDate>Mon, 27 Jun 2005 17:32:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/missing-data-when-cut-paste/m-p/3569888#M830980</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-06-27T17:32:33Z</dc:date>
    </item>
  </channel>
</rss>

