<?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: need a easy script for display seting. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572262#M831083</link>
    <description>hi all&lt;BR /&gt;&lt;BR /&gt;************&lt;BR /&gt;Slawomir &lt;BR /&gt;&lt;BR /&gt;    see i have given that script 755 as permision and i have copied it to /usr/bin&lt;BR /&gt;&lt;BR /&gt;   then only i have executed it..&lt;BR /&gt;&lt;BR /&gt;i tried in ./fullpath/script but the too once the script ends the setting is disappeared&lt;BR /&gt;&lt;BR /&gt; and it is acutally echo $DISPLAY only i have mis typed in this&lt;BR /&gt;********************&lt;BR /&gt;&lt;BR /&gt;Hi Patrick&lt;BR /&gt;&lt;BR /&gt; I have tried yours too..&lt;BR /&gt;but no working.. same &lt;BR /&gt;&lt;BR /&gt;export DISPLAY ( i don't  want normal users to know unix.. and i want them to use my the simpliest way)&lt;BR /&gt;&lt;BR /&gt;************************************&lt;BR /&gt;&lt;BR /&gt;Hi gopi&lt;BR /&gt;&lt;BR /&gt;  i do not how to use {} in scriopts i have tried this &lt;BR /&gt;&lt;BR /&gt;echo "type your local pc ip address below"&lt;BR /&gt;read ip&lt;BR /&gt;{DISPLAY=$ip:0.0&lt;BR /&gt;export DISPLAY}&lt;BR /&gt;echo $DISPLAY&lt;BR /&gt;&lt;BR /&gt;but when i xecute it is telling that thr is error in my script&lt;BR /&gt;LD[3]:DISPLAY=172.14.14.2:0.0}: not found&lt;BR /&gt;LD[4]:DISPLAY} is not an identifier&lt;BR /&gt;****************************************8&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;any other way to do the same&lt;BR /&gt;thank you&lt;BR /&gt;</description>
    <pubDate>Tue, 28 Jun 2005 09:53:33 GMT</pubDate>
    <dc:creator>jayachandran.g</dc:creator>
    <dc:date>2005-06-28T09:53:33Z</dc:date>
    <item>
      <title>need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572258#M831079</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;     &lt;BR /&gt;1) All my freinds are using 3 commands &lt;BR /&gt;&lt;BR /&gt;#DISPLAY=ip:0.0;export DISPLAY;echo $DISPLAY)&lt;BR /&gt;&lt;BR /&gt;to set display i want to make it in one script.&lt;BR /&gt;&lt;BR /&gt;So i have writen a script for it as follows&lt;BR /&gt;**********************************************&lt;BR /&gt;#/sbin/sh&lt;BR /&gt;echo "type your local pc ip address below"&lt;BR /&gt;read ip&lt;BR /&gt;DISPLAY=$ip:0.0&lt;BR /&gt;export DISPLAY&lt;BR /&gt;echo DISPLAY&lt;BR /&gt;**********************************************&lt;BR /&gt;it shows correctly till echo&lt;BR /&gt;but as if it is running in a child shell     (i hope i'm correct) the setting is getting disappeared at the end when it return back to its parent shell&lt;BR /&gt;is thr any way to make it set for its parent shell also.&lt;BR /&gt;&lt;BR /&gt;tell me is thr any way to do it.&lt;BR /&gt;thank you</description>
      <pubDate>Tue, 28 Jun 2005 09:03:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572258#M831079</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-06-28T09:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572259#M831080</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you need to execute you script by:&lt;BR /&gt;&lt;BR /&gt;a) in sh,ksh shell:&lt;BR /&gt;. ./your_script_name&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;. /full_path/your_script_name&lt;BR /&gt;&lt;BR /&gt;b) in csh, tcsh&lt;BR /&gt;source ./you_script_name&lt;BR /&gt;&lt;BR /&gt;Ps,&lt;BR /&gt;&lt;BR /&gt;replace echo DISPLAY to echo $DISPLAY&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jun 2005 09:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572259#M831080</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2005-06-28T09:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572260#M831081</link>
      <description>You don't just run the script, you have to source it.&lt;BR /&gt;&lt;BR /&gt;$ . /scriptname&lt;BR /&gt;&lt;BR /&gt;Or my easy way to do it:&lt;BR /&gt;&lt;BR /&gt;$ export DISPLAY=host:0.0&lt;BR /&gt;&lt;BR /&gt;There you go.  1 statement.&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jun 2005 09:15:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572260#M831081</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-06-28T09:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572261#M831082</link>
      <description>&lt;BR /&gt;you have to execute the script in current shell, generally it is executed in the sub shell.&lt;BR /&gt;&lt;BR /&gt;execute the commands with in { } and source it using ./script</description>
      <pubDate>Tue, 28 Jun 2005 09:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572261#M831082</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-06-28T09:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572262#M831083</link>
      <description>hi all&lt;BR /&gt;&lt;BR /&gt;************&lt;BR /&gt;Slawomir &lt;BR /&gt;&lt;BR /&gt;    see i have given that script 755 as permision and i have copied it to /usr/bin&lt;BR /&gt;&lt;BR /&gt;   then only i have executed it..&lt;BR /&gt;&lt;BR /&gt;i tried in ./fullpath/script but the too once the script ends the setting is disappeared&lt;BR /&gt;&lt;BR /&gt; and it is acutally echo $DISPLAY only i have mis typed in this&lt;BR /&gt;********************&lt;BR /&gt;&lt;BR /&gt;Hi Patrick&lt;BR /&gt;&lt;BR /&gt; I have tried yours too..&lt;BR /&gt;but no working.. same &lt;BR /&gt;&lt;BR /&gt;export DISPLAY ( i don't  want normal users to know unix.. and i want them to use my the simpliest way)&lt;BR /&gt;&lt;BR /&gt;************************************&lt;BR /&gt;&lt;BR /&gt;Hi gopi&lt;BR /&gt;&lt;BR /&gt;  i do not how to use {} in scriopts i have tried this &lt;BR /&gt;&lt;BR /&gt;echo "type your local pc ip address below"&lt;BR /&gt;read ip&lt;BR /&gt;{DISPLAY=$ip:0.0&lt;BR /&gt;export DISPLAY}&lt;BR /&gt;echo $DISPLAY&lt;BR /&gt;&lt;BR /&gt;but when i xecute it is telling that thr is error in my script&lt;BR /&gt;LD[3]:DISPLAY=172.14.14.2:0.0}: not found&lt;BR /&gt;LD[4]:DISPLAY} is not an identifier&lt;BR /&gt;****************************************8&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;any other way to do the same&lt;BR /&gt;thank you&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jun 2005 09:53:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572262#M831083</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-06-28T09:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572263#M831084</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;my mistake, I believe i dint read the question clearly. modify the script like this &lt;BR /&gt;&lt;BR /&gt;#/sbin/sh&lt;BR /&gt;echo "type your local pc ip address below"&lt;BR /&gt;read ip&lt;BR /&gt;export DISPLAY=$ip:0.0&lt;BR /&gt;echo DISPLAY&lt;BR /&gt;&lt;BR /&gt;and then call the script like this &lt;BR /&gt;&lt;BR /&gt;. /path/to/script&lt;BR /&gt;&lt;BR /&gt;The dot before the script name is very important because it tells the bash not to spawn a subshell rather to use the current shell itself&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jun 2005 10:17:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572263#M831084</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-06-28T10:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572264#M831085</link>
      <description>To do it in one line:&lt;BR /&gt;&lt;BR /&gt;export DISPLAY=ip:0.0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The last line in your script should read &lt;BR /&gt;echo $DISPLAY&lt;BR /&gt;&lt;BR /&gt;whenever you reference a variable after it has been set, you must use the form $VARIABLE_NAME&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Tue, 28 Jun 2005 10:22:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572264#M831085</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-06-28T10:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572265#M831086</link>
      <description>&lt;BR /&gt;i forgot to tell you that there should be a space between . and the path to the script.&lt;BR /&gt;&lt;BR /&gt;eg: . /path/to/script&lt;BR /&gt;&lt;BR /&gt;no points for this pls...</description>
      <pubDate>Tue, 28 Jun 2005 10:28:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572265#M831086</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-06-28T10:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572266#M831087</link>
      <description>I use the 'who -um' command when I connect to another system.&lt;BR /&gt;&lt;BR /&gt;My profile on the remote system will execute who -um and I run through awk to get last field&lt;BR /&gt;&lt;BR /&gt;who -um | awk '{print $NF}'&lt;BR /&gt;&lt;BR /&gt;So when I connect the profile has &lt;BR /&gt;export DISPLAY=`who -um | awk '{print $NF}'`:0&lt;BR /&gt;&lt;BR /&gt;My DISPLAY is always exported&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jun 2005 10:33:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572266#M831087</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-06-28T10:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572267#M831088</link>
      <description>Sorry Slawomir and Partick really sorry&lt;BR /&gt;&lt;BR /&gt;  i have not seen that space between the dot...&lt;BR /&gt;   &lt;BR /&gt;  now i got cleared both of you r very great...&lt;BR /&gt;&lt;BR /&gt;Gopi your answer is correct but what Slawomir and Partick said is explaied below that is a excellent answer for one and all&lt;BR /&gt;&lt;BR /&gt;      instead of using ./fullpath/script (which i have tried and got failed) i must be using &lt;BR /&gt; . ./script (rember two dots inbetween a space  " . ./" if the script is in your working directory)&lt;BR /&gt;&lt;BR /&gt;  is the solution.. &lt;BR /&gt; &lt;BR /&gt; there is still a more to tell if the script is not in the present directory then insted of using ". ./"  we must  use ". /full path/script"  ("dot space full path") &lt;BR /&gt;&lt;BR /&gt; Thanks A lot &lt;BR /&gt; good luck for all</description>
      <pubDate>Tue, 28 Jun 2005 10:49:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572267#M831088</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-06-28T10:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: need a easy script for display seting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572268#M831089</link>
      <description>Hi Rick&lt;BR /&gt;&lt;BR /&gt;  all my problem is sloved you gave a wonderful answer..&lt;BR /&gt;&lt;BR /&gt;   no comments &lt;BR /&gt;&lt;BR /&gt;try this bye bye &lt;BR /&gt; banner "Rick is great"</description>
      <pubDate>Tue, 28 Jun 2005 11:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-easy-script-for-display-seting/m-p/3572268#M831089</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-06-28T11:03:50Z</dc:date>
    </item>
  </channel>
</rss>

