<?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: About the script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-script/m-p/2932526#M719976</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First of all, you shouldn't use variable names such as "login", which in itself is a command. Next there is no space between the "=" sign. A more readable form would be:&lt;BR /&gt;&lt;BR /&gt;logins=$(w -u)&lt;BR /&gt;&lt;BR /&gt;Also, people may stop helping you if you continue to avoid assigning points. 0 from 100 posts is not good.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;James.</description>
    <pubDate>Fri, 21 Mar 2003 03:34:56 GMT</pubDate>
    <dc:creator>James Murtagh</dc:creator>
    <dc:date>2003-03-21T03:34:56Z</dc:date>
    <item>
      <title>About the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-script/m-p/2932525#M719975</link>
      <description>I am new comer to write a UNIX shell script, I have a simple question ,&lt;BR /&gt;&lt;BR /&gt;I can run the command&lt;BR /&gt;# w -u &lt;BR /&gt;the result is normal, but why I can't set it as a variable in my script program :&lt;BR /&gt;# login = `w -u`&lt;BR /&gt;Password:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Mar 2003 03:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-script/m-p/2932525#M719975</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-03-21T03:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: About the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-script/m-p/2932526#M719976</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First of all, you shouldn't use variable names such as "login", which in itself is a command. Next there is no space between the "=" sign. A more readable form would be:&lt;BR /&gt;&lt;BR /&gt;logins=$(w -u)&lt;BR /&gt;&lt;BR /&gt;Also, people may stop helping you if you continue to avoid assigning points. 0 from 100 posts is not good.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;James.</description>
      <pubDate>Fri, 21 Mar 2003 03:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-script/m-p/2932526#M719976</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2003-03-21T03:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: About the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-script/m-p/2932527#M719977</link>
      <description>login is command, that is why it is prompting for password.&lt;BR /&gt;&lt;BR /&gt;say&lt;BR /&gt;&lt;BR /&gt;juno=`w -u`&lt;BR /&gt;&lt;BR /&gt;now echo $juno&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Mar 2003 03:35:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-script/m-p/2932527#M719977</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2003-03-21T03:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: About the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-the-script/m-p/2932528#M719978</link>
      <description>the syntax is like&lt;BR /&gt;&lt;BR /&gt;variable = value&lt;BR /&gt;&lt;BR /&gt;login is a command you can use it.&lt;BR /&gt;&lt;BR /&gt;Just use any variable.&lt;BR /&gt;&lt;BR /&gt;x=`w -u`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Mar 2003 04:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-the-script/m-p/2932528#M719978</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-03-21T04:34:37Z</dc:date>
    </item>
  </channel>
</rss>

