<?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: Scripting question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143907#M801489</link>
    <description>As knowledgible as me :-)) ... OK I will take this as a Joke ...&lt;BR /&gt;&lt;BR /&gt;Under /usr/bin create a file named "runx" using "vi" and the file should contain the following entries,&lt;BR /&gt;&lt;BR /&gt;#----------------------------------------&lt;BR /&gt;##Run this script as "runx cde/wm/gnome"&lt;BR /&gt;case $1 in&lt;BR /&gt;cde) xinit /usr/dt/bin/Xsession&lt;BR /&gt;;;&lt;BR /&gt;wm) xinit /usr/local/bin/wmaker&lt;BR /&gt;;;&lt;BR /&gt;gnome) xinit /etc/gnome/gdm/Sessions/Gnome&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;#----------------------------------------&lt;BR /&gt;&lt;BR /&gt;Then do a,&lt;BR /&gt;chmod 555 /usr/bin/runx&lt;BR /&gt;&lt;BR /&gt;Now if you want to start gnome,&lt;BR /&gt;/usr/bin/runx gnome&lt;BR /&gt;&lt;BR /&gt;For CDE&lt;BR /&gt;/usr/bin/runx cde&lt;BR /&gt;&lt;BR /&gt;For Window Manager&lt;BR /&gt;/usr/bin/runx wm&lt;BR /&gt;&lt;BR /&gt;-Karthik S S&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 12 Dec 2003 18:33:22 GMT</pubDate>
    <dc:creator>Karthik S S</dc:creator>
    <dc:date>2003-12-12T18:33:22Z</dc:date>
    <item>
      <title>Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143900#M801482</link>
      <description>Could someone answer a script question?</description>
      <pubDate>Fri, 12 Dec 2003 17:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143900#M801482</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-12T17:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143901#M801483</link>
      <description>Pl. post the question first :-))&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Fri, 12 Dec 2003 18:00:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143901#M801483</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2003-12-12T18:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143902#M801484</link>
      <description>yes. ;-)</description>
      <pubDate>Fri, 12 Dec 2003 18:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143902#M801484</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-12-12T18:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143903#M801485</link>
      <description>I have CDE, Gnome and WindowMaker all installed and can run any of the three from comand prompt. Is there a way to write a script like:&lt;BR /&gt;wn = xinit /usr/local/bin/wmaker&lt;BR /&gt;or&lt;BR /&gt;gnome = xinit /etc/gnome/gdm/Sessions/Gnome&lt;BR /&gt;or&lt;BR /&gt;cde = xinit /usr/dt/bin/Xsession&lt;BR /&gt;Kind of like the old batch files .bat in MS DOS (remember that?) :)</description>
      <pubDate>Fri, 12 Dec 2003 18:05:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143903#M801485</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-12T18:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143904#M801486</link>
      <description>You can create aliases for your commands.  If you use the ksh, add these lines to your .profile file...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;alias wn='xinit /usr/local/bin/wmaker'&lt;BR /&gt;alias gnome='xinit /etc/gnome/gdm/Sessions/Gnome'&lt;BR /&gt;alias cde='xinit /usr/dt/bin/Xsession'</description>
      <pubDate>Fri, 12 Dec 2003 18:08:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143904#M801486</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-12-12T18:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143905#M801487</link>
      <description>I have answered to your other post on this,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=306906" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=306906&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-----------------------&lt;BR /&gt;&lt;BR /&gt;##Run this script as "script cde/wm/gnome"&lt;BR /&gt;case $1 in&lt;BR /&gt;cde) xinit /usr/dt/bin/Xsession&lt;BR /&gt;;;&lt;BR /&gt;wm) xinit /usr/local/bin/wmaker&lt;BR /&gt;;;&lt;BR /&gt;gnome) xinit /etc/gnome/gdm/Sessions/Gnome&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Fri, 12 Dec 2003 18:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143905#M801487</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2003-12-12T18:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143906#M801488</link>
      <description>Kartnik, &lt;BR /&gt;I could not do anything with your reply because it looks like alien writing. (Not everyone is as knowledgible as you).&lt;BR /&gt;&lt;BR /&gt;Jim,&lt;BR /&gt;/.profile shows up in the file manager but when I click on it it says file does not exist. I also have /etc/skel/.profile andtwo under /user/newconfig...&lt;BR /&gt;How do I add these aliases.&lt;BR /&gt;I'm using sh&lt;BR /&gt;#</description>
      <pubDate>Fri, 12 Dec 2003 18:25:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143906#M801488</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-12T18:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143907#M801489</link>
      <description>As knowledgible as me :-)) ... OK I will take this as a Joke ...&lt;BR /&gt;&lt;BR /&gt;Under /usr/bin create a file named "runx" using "vi" and the file should contain the following entries,&lt;BR /&gt;&lt;BR /&gt;#----------------------------------------&lt;BR /&gt;##Run this script as "runx cde/wm/gnome"&lt;BR /&gt;case $1 in&lt;BR /&gt;cde) xinit /usr/dt/bin/Xsession&lt;BR /&gt;;;&lt;BR /&gt;wm) xinit /usr/local/bin/wmaker&lt;BR /&gt;;;&lt;BR /&gt;gnome) xinit /etc/gnome/gdm/Sessions/Gnome&lt;BR /&gt;;;&lt;BR /&gt;esac&lt;BR /&gt;#----------------------------------------&lt;BR /&gt;&lt;BR /&gt;Then do a,&lt;BR /&gt;chmod 555 /usr/bin/runx&lt;BR /&gt;&lt;BR /&gt;Now if you want to start gnome,&lt;BR /&gt;/usr/bin/runx gnome&lt;BR /&gt;&lt;BR /&gt;For CDE&lt;BR /&gt;/usr/bin/runx cde&lt;BR /&gt;&lt;BR /&gt;For Window Manager&lt;BR /&gt;/usr/bin/runx wm&lt;BR /&gt;&lt;BR /&gt;-Karthik S S&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Dec 2003 18:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/3143907#M801489</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2003-12-12T18:33:22Z</dc:date>
    </item>
  </channel>
</rss>

