<?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: Executing long commands on secureCRT terminal in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672274#M381889</link>
    <description>&lt;!--!*#--&gt;The best way would be to use a single backslash at the end of the lines to indicate that the command continues on the next line:&lt;BR /&gt;&lt;BR /&gt;command /this/is \&lt;BR /&gt; /a/very/long/list \&lt;BR /&gt; /of/arguments \&lt;BR /&gt; /for/the/command&lt;BR /&gt;&lt;BR /&gt;The shell will automatically recognize this and will display a special prompt for the extra lines:&lt;BR /&gt;&lt;BR /&gt;$ command /this/is \&lt;BR /&gt;&amp;gt; /a/very/long/list \&lt;BR /&gt;&amp;gt; /of/arguments \&lt;BR /&gt;&amp;gt; /for/the/command&lt;BR /&gt;&lt;BR /&gt;The (backslash + linefeed) combination will act as a space in the command line. If you need long strings without spaces, this might not help.&lt;BR /&gt;&lt;BR /&gt;The second way to solve this problem concerns the application you're copying the command line from (i.e. Word or Notepad). If it understands the command is a single long line, it will be pasted as a single long line, even if the program displays it on multiple lines. Word should be able to do this, but Notepad might not (because Notepad's line wrapping might be too primitive).&lt;BR /&gt;&lt;BR /&gt;The third way would be to write a small HP-UX script. You could use environment variables to pack the arguments more tightly:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;A="/this/is"&lt;BR /&gt;B="/a/very/long/list"&lt;BR /&gt;C="/of/arguments"&lt;BR /&gt;D="/for/the/command"&lt;BR /&gt;&lt;BR /&gt;command $A $B $C $D&lt;BR /&gt;&lt;BR /&gt;or if the arguments must form a single long line, then:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;A="/this/is/"&lt;BR /&gt;B="/a/very/long/"&lt;BR /&gt;C="/single/argument/"&lt;BR /&gt;D="/for/the/command"&lt;BR /&gt;&lt;BR /&gt;command $A$B$C$D&lt;BR /&gt;&lt;BR /&gt;There are probably many other ways to solve this problem. To find the ideal way, we would have to know more about the command you're trying to run.&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Mon, 09 Aug 2010 17:39:02 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2010-08-09T17:39:02Z</dc:date>
    <item>
      <title>Executing long commands on secureCRT terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672272#M381887</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have some commands syntax which are very long having 4-5 lines. I use secureCRT to connect HP-UX Servers.&lt;BR /&gt;I have noticed when i copy paste using mouse continuity between lines breaks.&lt;BR /&gt;&lt;BR /&gt;What settings do i need to change so that i can copy and paste entire lines from notepad or word to secureCRT terminal without breaking lines ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Mon, 09 Aug 2010 16:06:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672272#M381887</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2010-08-09T16:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Executing long commands on secureCRT terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672273#M381888</link>
      <description>You didn't mention what program you are using on HP-UX so I will assume vi. vi can break up lines at the right margin (or not) depending on the setting for wm. Use this command to turn off margin wrap.&lt;BR /&gt; &lt;BR /&gt;:wrapmargin=0&lt;BR /&gt; &lt;BR /&gt;You can also just use cat to paste into a file:&lt;BR /&gt; &lt;BR /&gt;cat &amp;gt; some_file_name&lt;BR /&gt; &lt;BR /&gt;(then paste -- no prompt, press CTRL-d to finish)&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Aug 2010 17:18:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672273#M381888</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-08-09T17:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Executing long commands on secureCRT terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672274#M381889</link>
      <description>&lt;!--!*#--&gt;The best way would be to use a single backslash at the end of the lines to indicate that the command continues on the next line:&lt;BR /&gt;&lt;BR /&gt;command /this/is \&lt;BR /&gt; /a/very/long/list \&lt;BR /&gt; /of/arguments \&lt;BR /&gt; /for/the/command&lt;BR /&gt;&lt;BR /&gt;The shell will automatically recognize this and will display a special prompt for the extra lines:&lt;BR /&gt;&lt;BR /&gt;$ command /this/is \&lt;BR /&gt;&amp;gt; /a/very/long/list \&lt;BR /&gt;&amp;gt; /of/arguments \&lt;BR /&gt;&amp;gt; /for/the/command&lt;BR /&gt;&lt;BR /&gt;The (backslash + linefeed) combination will act as a space in the command line. If you need long strings without spaces, this might not help.&lt;BR /&gt;&lt;BR /&gt;The second way to solve this problem concerns the application you're copying the command line from (i.e. Word or Notepad). If it understands the command is a single long line, it will be pasted as a single long line, even if the program displays it on multiple lines. Word should be able to do this, but Notepad might not (because Notepad's line wrapping might be too primitive).&lt;BR /&gt;&lt;BR /&gt;The third way would be to write a small HP-UX script. You could use environment variables to pack the arguments more tightly:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;A="/this/is"&lt;BR /&gt;B="/a/very/long/list"&lt;BR /&gt;C="/of/arguments"&lt;BR /&gt;D="/for/the/command"&lt;BR /&gt;&lt;BR /&gt;command $A $B $C $D&lt;BR /&gt;&lt;BR /&gt;or if the arguments must form a single long line, then:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;A="/this/is/"&lt;BR /&gt;B="/a/very/long/"&lt;BR /&gt;C="/single/argument/"&lt;BR /&gt;D="/for/the/command"&lt;BR /&gt;&lt;BR /&gt;command $A$B$C$D&lt;BR /&gt;&lt;BR /&gt;There are probably many other ways to solve this problem. To find the ideal way, we would have to know more about the command you're trying to run.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 09 Aug 2010 17:39:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672274#M381889</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-08-09T17:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Executing long commands on secureCRT terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672275#M381890</link>
      <description>&lt;!--!*#--&gt;&amp;gt; What settings do i need to change so that i&lt;BR /&gt;&amp;gt; can copy and paste entire lines from&lt;BR /&gt;&amp;gt; notepad or word to secureCRT terminal&lt;BR /&gt;&amp;gt; without breaking lines ?&lt;BR /&gt;&lt;BR /&gt;To me, that sounds like a question about&lt;BR /&gt;applications running on a Windows system, not&lt;BR /&gt;really anything to do with HP-UX.&lt;BR /&gt;&lt;BR /&gt;With my weak psychic powers, I can't really&lt;BR /&gt;see what's in these Notepad or Word&lt;BR /&gt;documents, or what you're trying to&lt;BR /&gt;copy+paste from where into what, how.  If&lt;BR /&gt;there are line breaks in the text you're&lt;BR /&gt;copying, then you might expect them to get&lt;BR /&gt;pasted into the destination.</description>
      <pubDate>Mon, 09 Aug 2010 18:57:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672275#M381890</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-08-09T18:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Executing long commands on secureCRT terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672276#M381891</link>
      <description>&amp;gt;MK: The (backslash + linefeed) combination will act as a space in the command line.&lt;BR /&gt;&lt;BR /&gt;No, a real shell will just remove the backslash and linefeed.  No spaces added.&lt;BR /&gt;$ echo abc\&lt;BR /&gt;&amp;gt; def&lt;BR /&gt;abcdef</description>
      <pubDate>Tue, 10 Aug 2010 02:25:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-long-commands-on-securecrt-terminal/m-p/4672276#M381891</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-10T02:25:49Z</dc:date>
    </item>
  </channel>
</rss>

