<?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 Assigning variables to null in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839223#M90795</link>
    <description>Folks&lt;BR /&gt;&lt;BR /&gt;We need to have variables assigned called GL_SPOOLER during user sign-on for some Openspool print queues. Is it possible to assign these to null for some users who do not need all the useless output that their batch jobs create without causing errors in the batch jobs themselves?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Michael</description>
    <pubDate>Tue, 05 Nov 2002 15:45:53 GMT</pubDate>
    <dc:creator>Michael Campbell</dc:creator>
    <dc:date>2002-11-05T15:45:53Z</dc:date>
    <item>
      <title>Assigning variables to null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839223#M90795</link>
      <description>Folks&lt;BR /&gt;&lt;BR /&gt;We need to have variables assigned called GL_SPOOLER during user sign-on for some Openspool print queues. Is it possible to assign these to null for some users who do not need all the useless output that their batch jobs create without causing errors in the batch jobs themselves?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Tue, 05 Nov 2002 15:45:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839223#M90795</guid>
      <dc:creator>Michael Campbell</dc:creator>
      <dc:date>2002-11-05T15:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning variables to null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839224#M90796</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;I'm not sure to understand your problem, but :&lt;BR /&gt;&lt;BR /&gt;A - any variable can be set to null, the problem will depend on what your jobs do with them&lt;BR /&gt;&lt;BR /&gt;B - Be careful with '-u' option of shells. In this case, any non set variable reference will generate an error (unset parameter). Use 'set +u' to disable this feature.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 05 Nov 2002 15:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839224#M90796</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2002-11-05T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning variables to null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839225#M90797</link>
      <description>Hi Michael:&lt;BR /&gt;&lt;BR /&gt;To discard an output stream, redirect the output to '/dev/null'.&lt;BR /&gt;&lt;BR /&gt;It would appear the you could assign this value to GL_SPOOLER assuming that this variable represents the output device:&lt;BR /&gt;&lt;BR /&gt;GL_SPOOLER=/dev/null&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 05 Nov 2002 15:54:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839225#M90797</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-11-05T15:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning variables to null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839226#M90798</link>
      <description>Im not sure where this variable is assigned at, but the logic would be as follows.&lt;BR /&gt;&lt;BR /&gt;If the variable is et in /etc/profile (normal system variable location), then add a clause.  First make a list of users who do not need the variable.&lt;BR /&gt;&lt;BR /&gt;Then throw a condition into the bottom of the clause to see if the user is in the list.&lt;BR /&gt;&lt;BR /&gt;I.E.&lt;BR /&gt;ME=/bin/who am I&lt;BR /&gt;NOGLSPOOL=/etc/no_gl_spooler.lst&lt;BR /&gt;for I in `cat $NOGLSPOOL` ; do&lt;BR /&gt;  if [ "$ME" = "$I" ] ; then&lt;BR /&gt;     GL_SPOOLER=""&lt;BR /&gt;  else&lt;BR /&gt;     echo ""&amp;gt;&amp;gt;/dev/null&lt;BR /&gt;     #avoids strange errors&lt;BR /&gt;  fi&lt;BR /&gt;done</description>
      <pubDate>Tue, 05 Nov 2002 15:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839226#M90798</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-11-05T15:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning variables to null</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839227#M90799</link>
      <description>Why don't you just assign the variable to /dev/null:&lt;BR /&gt;&lt;BR /&gt;GL_SPOOLER='/dev/null'&lt;BR /&gt;&lt;BR /&gt;Chuck J</description>
      <pubDate>Tue, 05 Nov 2002 16:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/assigning-variables-to-null/m-p/2839227#M90799</guid>
      <dc:creator>Chuck J</dc:creator>
      <dc:date>2002-11-05T16:02:21Z</dc:date>
    </item>
  </channel>
</rss>

