<?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 Lengthy string in script getting truncated in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lengthy-string-in-script-getting-truncated/m-p/3675238#M798157</link>
    <description>I am calling a java program from a shell script.One the arguments to this program is a lengthy string. If i pass directly like this:&lt;BR /&gt;/opt/java/bin/javac Program "|HEADER|JAR933|vishal.biyani@rediffmail.com|290001|OL0006528|WIN4015444|SHAFT_FORGING|1.0|Baan EDM|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||&lt;BR /&gt;|290001|WIN4015444|00||||2|SHAFT FORGING|9|AXELSMIDE|3|ACHSE SCHMIEDESTÜCK|4|ARBRE FORGÉ|f|AKSELITAOS|||||||||||||||||||||||No||Approved|41.0|Mechanic|Yes|pc||WIN4015444|EL20|Purchased|Metric||0|20051120|||||Released||||||||||||||||No||||||||||||||||||||||||||||||||&lt;BR /&gt;"&lt;BR /&gt;this works properly but if i assign this string to a variable (say data) and then pass the data variable as argument to program then it gets truncated like:&lt;BR /&gt;/opt/java/bin/javac Program $data&lt;BR /&gt;&lt;BR /&gt;What is the problem and how to solve it?&lt;BR /&gt;</description>
    <pubDate>Sun, 20 Nov 2005 03:08:21 GMT</pubDate>
    <dc:creator>Vishal Biyani</dc:creator>
    <dc:date>2005-11-20T03:08:21Z</dc:date>
    <item>
      <title>Lengthy string in script getting truncated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lengthy-string-in-script-getting-truncated/m-p/3675238#M798157</link>
      <description>I am calling a java program from a shell script.One the arguments to this program is a lengthy string. If i pass directly like this:&lt;BR /&gt;/opt/java/bin/javac Program "|HEADER|JAR933|vishal.biyani@rediffmail.com|290001|OL0006528|WIN4015444|SHAFT_FORGING|1.0|Baan EDM|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||&lt;BR /&gt;|290001|WIN4015444|00||||2|SHAFT FORGING|9|AXELSMIDE|3|ACHSE SCHMIEDESTÜCK|4|ARBRE FORGÉ|f|AKSELITAOS|||||||||||||||||||||||No||Approved|41.0|Mechanic|Yes|pc||WIN4015444|EL20|Purchased|Metric||0|20051120|||||Released||||||||||||||||No||||||||||||||||||||||||||||||||&lt;BR /&gt;"&lt;BR /&gt;this works properly but if i assign this string to a variable (say data) and then pass the data variable as argument to program then it gets truncated like:&lt;BR /&gt;/opt/java/bin/javac Program $data&lt;BR /&gt;&lt;BR /&gt;What is the problem and how to solve it?&lt;BR /&gt;</description>
      <pubDate>Sun, 20 Nov 2005 03:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lengthy-string-in-script-getting-truncated/m-p/3675238#M798157</guid>
      <dc:creator>Vishal Biyani</dc:creator>
      <dc:date>2005-11-20T03:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lengthy string in script getting truncated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lengthy-string-in-script-getting-truncated/m-p/3675239#M798158</link>
      <description>Shalom Vishal,&lt;BR /&gt;&lt;BR /&gt;As far as I remember you can not transmit more than 256 characters in one command line argument. I recall hearing that this was a feature of the POSIX shell.&lt;BR /&gt;&lt;BR /&gt;I think you are going to need to break this up into a few pieces none of which can be greater than 256 bytes.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 20 Nov 2005 03:35:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lengthy-string-in-script-getting-truncated/m-p/3675239#M798158</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-20T03:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lengthy string in script getting truncated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lengthy-string-in-script-getting-truncated/m-p/3675240#M798159</link>
      <description>Ok, now can you please tell me if i have a file in which this data of string is written and i want to pass this as an argument to java class through shell script, how do i do it?</description>
      <pubDate>Sun, 20 Nov 2005 03:51:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lengthy-string-in-script-getting-truncated/m-p/3675240#M798159</guid>
      <dc:creator>Vishal Biyani</dc:creator>
      <dc:date>2005-11-20T03:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lengthy string in script getting truncated</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lengthy-string-in-script-getting-truncated/m-p/3675241#M798160</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;please show us how you got&lt;BR /&gt;$data&lt;BR /&gt;&lt;BR /&gt;Did you embed the variable in single quotes? That could explain why it is not expanded. If that is the case, try using double quotes ""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Sun, 20 Nov 2005 07:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lengthy-string-in-script-getting-truncated/m-p/3675241#M798160</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2005-11-20T07:31:28Z</dc:date>
    </item>
  </channel>
</rss>

