<?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 ssh and awk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-and-awk/m-p/3906570#M283845</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm running a little ssh script to obtain memory information using adb and also show crash directory sizing. Its pretty simple but I just don't get the way I have had to script it to get it to work specifically this line.&lt;BR /&gt;&lt;BR /&gt;ssh ${i} "bdf /var/adm/crash | grep -iv File | awk '{print \"total space \"\$2\" Freespace \"\$4}'"&lt;BR /&gt;&lt;BR /&gt;Why do I need the ignore special characters slash???? I don't when I run it locally on my linux server or remotely on the hp box. I just don't get it.&lt;BR /&gt;</description>
    <pubDate>Fri, 01 Dec 2006 08:01:16 GMT</pubDate>
    <dc:creator>Adam Noble</dc:creator>
    <dc:date>2006-12-01T08:01:16Z</dc:date>
    <item>
      <title>ssh and awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-and-awk/m-p/3906570#M283845</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm running a little ssh script to obtain memory information using adb and also show crash directory sizing. Its pretty simple but I just don't get the way I have had to script it to get it to work specifically this line.&lt;BR /&gt;&lt;BR /&gt;ssh ${i} "bdf /var/adm/crash | grep -iv File | awk '{print \"total space \"\$2\" Freespace \"\$4}'"&lt;BR /&gt;&lt;BR /&gt;Why do I need the ignore special characters slash???? I don't when I run it locally on my linux server or remotely on the hp box. I just don't get it.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Dec 2006 08:01:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-and-awk/m-p/3906570#M283845</guid>
      <dc:creator>Adam Noble</dc:creator>
      <dc:date>2006-12-01T08:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: ssh and awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-and-awk/m-p/3906571#M283846</link>
      <description>Hi Adam:&lt;BR /&gt;&lt;BR /&gt;By outer double quotes cause the contents between to be treated as one argument.  The inner, escaped double quotes are required to preserve the quote character at that point.  Consider the difference between:&lt;BR /&gt;&lt;BR /&gt;# echo "this is \"it\" ok?"&lt;BR /&gt;this is "it" ok?&lt;BR /&gt;&lt;BR /&gt;# echo "this is "it" ok?"  &lt;BR /&gt;this is it ok?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 01 Dec 2006 08:22:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-and-awk/m-p/3906571#M283846</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-12-01T08:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: ssh and awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-and-awk/m-p/3906572#M283847</link>
      <description>When you run remote commands like that it's also important to be conscious of how many different shells are involved. The command above actually gets interpreted by a shell twice, first on the local machine and again on the remote machine.&lt;BR /&gt;&lt;BR /&gt;Using single quotes wherever possible helps keep things simple. If you put your awk expression in double quotes instead you would need to use \\\" and \\\$ because the remote shell would have to see \" and \$ to pass " and $ through to awk. And just think how messy it would get if you then tried to print a quote in the awk output.</description>
      <pubDate>Fri, 01 Dec 2006 11:17:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-and-awk/m-p/3906572#M283847</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2006-12-01T11:17:16Z</dc:date>
    </item>
  </channel>
</rss>

