<?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: shell assignment doesn't work in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736418#M837033</link>
    <description>Hi Lz&lt;BR /&gt;&lt;BR /&gt;try this&lt;BR /&gt;mountPoint="/mnt_simple" &lt;BR /&gt;export myFstyp=`/usr/sbin/mount -p | grep "$mountPoint " | awk '{print $3}'` &lt;BR /&gt;&lt;BR /&gt;This should the the parameter correctly&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Jun 2002 15:11:19 GMT</pubDate>
    <dc:creator>MANOJ SRIVASTAVA</dc:creator>
    <dc:date>2002-06-03T15:11:19Z</dc:date>
    <item>
      <title>shell assignment doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736414#M837029</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;mountPoint="/mnt_simple"&lt;BR /&gt;&lt;BR /&gt;Does anyone know why the following line doesn't work?&lt;BR /&gt;myFstyp=`mount -p | grep "$mountPoint " | awk '{print $3}'`&lt;BR /&gt;&lt;BR /&gt;echo "fstype = $myFstyp" # doesn't display anything&lt;BR /&gt;&lt;BR /&gt;While, if I execute the above line on the command prompt, it works fine....&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2002 14:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736414#M837029</guid>
      <dc:creator>andi_1</dc:creator>
      <dc:date>2002-06-03T14:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: shell assignment doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736415#M837030</link>
      <description>Why don;t just use the command ..&lt;BR /&gt;# fstyp /dev/vg00/lvol1&lt;BR /&gt;for the FS mounted from /dev/vg00/lvol1 for instance.&lt;BR /&gt;&lt;BR /&gt;just a thought ..</description>
      <pubDate>Mon, 03 Jun 2002 14:48:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736415#M837030</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-06-03T14:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: shell assignment doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736416#M837031</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;From what you are saying, it sounds like you are running this out of cron or something.&lt;BR /&gt;&lt;BR /&gt;at the top of your script:&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/bin:/sbin:/usr/sbin&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;or state the absolut path of every command you execute.&lt;BR /&gt;&lt;BR /&gt;Hope I understood you correctly&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Mon, 03 Jun 2002 14:48:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736416#M837031</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-06-03T14:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: shell assignment doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736417#M837032</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;mountPoint="/mnt_simple" &lt;BR /&gt;export mountPoint&lt;BR /&gt;&lt;BR /&gt;myFstyp=`/sbin/mount -p | grep "$mountPoint " | awk '{print $3}'` &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Piyush&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2002 14:49:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736417#M837032</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-06-03T14:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: shell assignment doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736418#M837033</link>
      <description>Hi Lz&lt;BR /&gt;&lt;BR /&gt;try this&lt;BR /&gt;mountPoint="/mnt_simple" &lt;BR /&gt;export myFstyp=`/usr/sbin/mount -p | grep "$mountPoint " | awk '{print $3}'` &lt;BR /&gt;&lt;BR /&gt;This should the the parameter correctly&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2002 15:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736418#M837033</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-06-03T15:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: shell assignment doesn't work</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736419#M837034</link>
      <description>lz,&lt;BR /&gt;&lt;BR /&gt;Like they have said, use fstyp.&lt;BR /&gt;&lt;BR /&gt;BUT, I tried your example (with a different mount point) and it works fine. &lt;BR /&gt;&lt;BR /&gt;what does:&lt;BR /&gt;&lt;BR /&gt;mount -p | grep "$mountPoint " | od -bc&lt;BR /&gt;&lt;BR /&gt;return??&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2002 18:26:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-assignment-doesn-t-work/m-p/2736419#M837034</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-06-03T18:26:10Z</dc:date>
    </item>
  </channel>
</rss>

