<?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: variable in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855294#M2955</link>
    <description>variables don't have permissions the same way a file does.  When you export it you should be able to read that variable until you unset it.  to set a variable in a script it is as simple as:&lt;BR /&gt;&lt;BR /&gt;variable=value&lt;BR /&gt;&lt;BR /&gt;to recall that variable in the script you could:&lt;BR /&gt;&lt;BR /&gt;echo $variable&lt;BR /&gt;&lt;BR /&gt;do you need to export the variable so that it can be used outside of a script?  If so then you just have to follow my first example at the command line.  &lt;BR /&gt;&lt;BR /&gt;if you need to export a variable such as your DISPLAY just type:&lt;BR /&gt;&lt;BR /&gt;export DISPLAY=workstation:0.0&lt;BR /&gt;&lt;BR /&gt;Is any of this what you are looking for?&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Dec 2002 12:40:22 GMT</pubDate>
    <dc:creator>John Meissner</dc:creator>
    <dc:date>2002-12-02T12:40:22Z</dc:date>
    <item>
      <title>variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855293#M2954</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;How do i export a variable with read permissions&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;chakri&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2002 12:34:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855293#M2954</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-12-02T12:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855294#M2955</link>
      <description>variables don't have permissions the same way a file does.  When you export it you should be able to read that variable until you unset it.  to set a variable in a script it is as simple as:&lt;BR /&gt;&lt;BR /&gt;variable=value&lt;BR /&gt;&lt;BR /&gt;to recall that variable in the script you could:&lt;BR /&gt;&lt;BR /&gt;echo $variable&lt;BR /&gt;&lt;BR /&gt;do you need to export the variable so that it can be used outside of a script?  If so then you just have to follow my first example at the command line.  &lt;BR /&gt;&lt;BR /&gt;if you need to export a variable such as your DISPLAY just type:&lt;BR /&gt;&lt;BR /&gt;export DISPLAY=workstation:0.0&lt;BR /&gt;&lt;BR /&gt;Is any of this what you are looking for?&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2002 12:40:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855294#M2955</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2002-12-02T12:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855295#M2956</link>
      <description>other than export in linux there is a command with which you can export a variable with permissions,,  looking for that command&lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;chakri</description>
      <pubDate>Mon, 02 Dec 2002 12:51:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855295#M2956</guid>
      <dc:creator>Chakravarthi</dc:creator>
      <dc:date>2002-12-02T12:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855296#M2957</link>
      <description>Export is used in sh and ksh. I believe that "set" is used in csh. Are you trying to export in a specific shell?</description>
      <pubDate>Mon, 02 Dec 2002 13:55:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855296#M2957</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-12-02T13:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855297#M2958</link>
      <description>hi, &lt;BR /&gt;&lt;BR /&gt;You can do it with typeset ( with pdksh)&lt;BR /&gt;&lt;BR /&gt; ex.&lt;BR /&gt;&lt;BR /&gt;[ smertens@thalia:/home/smertens ] [ 20021202 18:33:58 ]&lt;BR /&gt;$ typeset -r y=bla&lt;BR /&gt;[ smertens@thalia:/home/smertens ] [ 20021202 18:34:40 ]&lt;BR /&gt;$ y=blabla&lt;BR /&gt;ksh: y: is read only&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Mon, 02 Dec 2002 17:35:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855297#M2958</guid>
      <dc:creator>Steven Mertens</dc:creator>
      <dc:date>2002-12-02T17:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: variable</title>
      <link>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855298#M2959</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;I just found out you can also&lt;BR /&gt;use the command readonly &lt;BR /&gt;to set vars readonly. :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds.&lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Sat, 14 Dec 2002 21:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/variable/m-p/2855298#M2959</guid>
      <dc:creator>Steven Mertens</dc:creator>
      <dc:date>2002-12-14T21:02:09Z</dc:date>
    </item>
  </channel>
</rss>

