<?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: Managing variables -very important in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507352#M681185</link>
    <description>i changed it to&lt;BR /&gt;&lt;BR /&gt;echo "${TAP OUT}" &amp;gt; file02.txt;&lt;BR /&gt;&lt;BR /&gt;but still the same error&lt;BR /&gt;!!!!&lt;BR /&gt;plz advise</description>
    <pubDate>Thu, 08 Oct 2009 06:25:17 GMT</pubDate>
    <dc:creator>Marco_ALT</dc:creator>
    <dc:date>2009-10-08T06:25:17Z</dc:date>
    <item>
      <title>Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507343#M681176</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I have an operations which give the output in a variable $out&lt;BR /&gt;&lt;BR /&gt;I want to send this output by e-mail, so guys know that the job has been finished.&lt;BR /&gt;&lt;BR /&gt;Simply, i need to write the variable $out to a file, after that i can send it by e-mail.&lt;BR /&gt;&lt;BR /&gt;Can you please help with this?&lt;BR /&gt;&lt;BR /&gt;thanks &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 04 Oct 2009 09:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507343#M681176</guid>
      <dc:creator>Marco_ALT</dc:creator>
      <dc:date>2009-10-04T09:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507344#M681177</link>
      <description>Why do you need to write the value to a file? Am I over-simplifying this?:&lt;BR /&gt;&lt;BR /&gt;echo "Output of operation is &amp;lt;${out}&amp;gt;" | mailx -s "Output of operation" my.email@myaddress.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Won't that do?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 04 Oct 2009 10:00:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507344#M681177</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-10-04T10:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507345#M681178</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;can i write this output to a .txt file or .csv file??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Sun, 04 Oct 2009 10:02:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507345#M681178</guid>
      <dc:creator>Marco_ALT</dc:creator>
      <dc:date>2009-10-04T10:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507346#M681179</link>
      <description>Sure if you want:&lt;BR /&gt;&lt;BR /&gt;echo ${out} &amp;gt; /tmp/myfile.txt&lt;BR /&gt;&lt;BR /&gt;cat /tmp/myfile.txt | mailx -s "Output of operation" my.email@myaddress.com&lt;BR /&gt;&lt;BR /&gt;To a CSV file??? what are you trying to put in comma delimited format??&lt;BR /&gt;&lt;BR /&gt;Maybe you need tyo define your problem statement a bit further&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Sun, 04 Oct 2009 10:31:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507346#M681179</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-10-04T10:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507347#M681180</link>
      <description>do you man as an attachement?&lt;BR /&gt;&lt;BR /&gt;mail myname@myaddr &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;Subject: fin de job&lt;BR /&gt;Content-Type: application/vnd.ms-excel;&lt;BR /&gt; name="t1.csv"&lt;BR /&gt;Content-Transfer-Encoding: 7bit&lt;BR /&gt;&lt;BR /&gt;$out&lt;BR /&gt;.&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Oct 2009 06:48:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507347#M681180</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-10-05T06:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507348#M681181</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;i am trying to write the variable to that file using command&lt;BR /&gt;&lt;BR /&gt;#echo ${out} &amp;gt; /tmp/myfile.txt&lt;BR /&gt;but i got this error msg&lt;BR /&gt;&lt;BR /&gt;Result=ChannelExec;returnResult=ChannelExec;returnCode=-1.............................&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;what is the channedExec error and how i can solve it?&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Thu, 08 Oct 2009 04:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507348#M681181</guid>
      <dc:creator>Marco_ALT</dc:creator>
      <dc:date>2009-10-08T04:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507349#M681182</link>
      <description>it seems like a Java application error not HP-UX . Did you use a java code to get this output ?</description>
      <pubDate>Thu, 08 Oct 2009 05:41:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507349#M681182</guid>
      <dc:creator>Hakki Aydin Ucar</dc:creator>
      <dc:date>2009-10-08T05:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507350#M681183</link>
      <description>&amp;gt;but I got this error msg&lt;BR /&gt;&lt;BR /&gt;Where?  On stderr or in tmp/myfile.txt?</description>
      <pubDate>Thu, 08 Oct 2009 06:09:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507350#M681183</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-08T06:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507351#M681184</link>
      <description>If your variable may contain spaces, semi-colons and/or other characters with a special meaning to the shell, put double quotes around it.&lt;BR /&gt;&lt;BR /&gt;echo "${out}" &amp;gt; /tmp/myfile.txt&lt;BR /&gt;&lt;BR /&gt;The semi-colon (;) ends one shell command and begins another. If your variable contains semi-colons and the variable expansion is not quoted, the first semi-colon will terminate the echo command and the rest of the variable content will be interpreted as shell command(s), most likely causing error messages.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Thu, 08 Oct 2009 06:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507351#M681184</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-10-08T06:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507352#M681185</link>
      <description>i changed it to&lt;BR /&gt;&lt;BR /&gt;echo "${TAP OUT}" &amp;gt; file02.txt;&lt;BR /&gt;&lt;BR /&gt;but still the same error&lt;BR /&gt;!!!!&lt;BR /&gt;plz advise</description>
      <pubDate>Thu, 08 Oct 2009 06:25:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507352#M681185</guid>
      <dc:creator>Marco_ALT</dc:creator>
      <dc:date>2009-10-08T06:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507353#M681186</link>
      <description>&amp;gt;MK: If your variable contains semi-colons and the variable expansion is not quoted, the first semi-colon will terminate the echo command &lt;BR /&gt;&lt;BR /&gt;Not hardly, a real shell doesn't look for a ";" after variable expansion:&lt;BR /&gt;$ x="abc;def"&lt;BR /&gt;$ echo $x&lt;BR /&gt;abc;def&lt;BR /&gt;&lt;BR /&gt;The reason you quote things is because you want to preserve the whitespace.</description>
      <pubDate>Thu, 08 Oct 2009 06:38:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507353#M681186</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-08T06:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507354#M681187</link>
      <description>&amp;gt;echo "${TAP OUT}" &amp;gt; file02.txt&lt;BR /&gt;&lt;BR /&gt;You can't do that.  You can't have spaces in a variable name.  You would get:&lt;BR /&gt;ksh: "${TAP OUT}": bad substitution</description>
      <pubDate>Thu, 08 Oct 2009 06:41:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507354#M681187</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-08T06:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507355#M681188</link>
      <description>when i substitute with the following&lt;BR /&gt;&lt;BR /&gt;x="TAP OUT"&lt;BR /&gt;echo $x &amp;gt; file02.txt;&lt;BR /&gt;&lt;BR /&gt;i received the e-mail contaning "TAP OUT" as the body!!&lt;BR /&gt;&lt;BR /&gt;i need to subistitue with the variable value&lt;BR /&gt;ie $TAP OUT not the name char "tap out"&lt;BR /&gt;&lt;BR /&gt;shall i do it like&lt;BR /&gt;x="${TAP OUT}"&lt;BR /&gt;echo $x.........&lt;BR /&gt;?&lt;BR /&gt;plz advise</description>
      <pubDate>Thu, 08 Oct 2009 07:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507355#M681188</guid>
      <dc:creator>Marco_ALT</dc:creator>
      <dc:date>2009-10-08T07:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Managing variables -very important</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507356#M681189</link>
      <description>&amp;gt;I need to substitute with the variable value&lt;BR /&gt;ie $TAP OUT not the name char "tap out"&lt;BR /&gt;&lt;BR /&gt;You can't have a variable with embedded spaces.&lt;BR /&gt;&lt;BR /&gt;If you want to do variable "indirection":&lt;BR /&gt;$ x=9&lt;BR /&gt;$ y=10&lt;BR /&gt;$ z=x&lt;BR /&gt;$ eval echo \$$z&lt;BR /&gt;9</description>
      <pubDate>Thu, 08 Oct 2009 07:27:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-variables-very-important/m-p/4507356#M681189</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-10-08T07:27:21Z</dc:date>
    </item>
  </channel>
</rss>

