<?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: automatically execute a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908410#M831244</link>
    <description>Thank you. I understand.</description>
    <pubDate>Wed, 29 Jun 2005 08:45:44 GMT</pubDate>
    <dc:creator>Roxana_4</dc:creator>
    <dc:date>2005-06-29T08:45:44Z</dc:date>
    <item>
      <title>automatically execute a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908402#M831236</link>
      <description>My names is Roxana Colta. I'm system engineer at UTB Brasov, Romania. I have the HP rx2600 Integrity with HPUX 11.23 . &lt;BR /&gt;Could you tell me if there are any possibilities that when the user is geting logged in HPUX to automatically execute a script witch contains unix instructions ?&lt;BR /&gt;Please be so kind and describe in details all the modalities you know.&lt;BR /&gt; &lt;BR /&gt;Thank you very mutch.&lt;BR /&gt; &lt;BR /&gt;Best regards.&lt;BR /&gt; &lt;BR /&gt;Roxana</description>
      <pubDate>Wed, 22 Jun 2005 01:15:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908402#M831236</guid>
      <dc:creator>Roxana_4</dc:creator>
      <dc:date>2005-06-22T01:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: automatically execute a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908403#M831237</link>
      <description>Yes.&lt;BR /&gt;&lt;BR /&gt;You can put your script execution in /etc/profile or $HOME/.profile file.&lt;BR /&gt;&lt;BR /&gt;-- /tmp/test.sh&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;uname -a&lt;BR /&gt;who am i&lt;BR /&gt;hostname&lt;BR /&gt;&lt;BR /&gt;chmod 755 /tmp/test.sh&lt;BR /&gt;&lt;BR /&gt;-- /etc/profile --&lt;BR /&gt;&lt;BR /&gt;/tmp/test.sh&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;--- $HOME/.profile&lt;BR /&gt;&lt;BR /&gt;/tmp/test.sh&lt;BR /&gt;&lt;BR /&gt;You can also do like . /tmp/test.sh to execute them there.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Wed, 22 Jun 2005 01:27:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908403#M831237</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-22T01:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: automatically execute a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908404#M831238</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As stated above create script &amp;amp; then include it in $HOME/.profile of that user. But I would advice script to be kept in the home directory of user itself rather then /tmp with proper permissions. If it is to be shared by all users then keep it somewhere in /etc &amp;amp; have a executable link in /etc/profile itself rather then .profile of all users.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Wed, 22 Jun 2005 03:12:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908404#M831238</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-06-22T03:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: automatically execute a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908405#M831239</link>
      <description>&lt;BR /&gt;add the script in $HOME/.profile of the user directory, this script will get executed every time the user logs on.&lt;BR /&gt;&lt;BR /&gt;make sure you have set executable permission for this file. $HOME refers to the home directory of the user.&lt;BR /&gt;&lt;BR /&gt;if you want the script to get executed for all the users when they login, then add the script in /etc/profile which will be called for all the users when they login&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jun 2005 04:02:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908405#M831239</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-06-22T04:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: automatically execute a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908406#M831240</link>
      <description>Every shell has a startup script. Generally, shell executes a global startup script, located under /etc and a personal script located in $HOME dir of the user. Most shell (i.e. not csh) uses /etc/profile and $HOME/.profile.&lt;BR /&gt;&lt;BR /&gt;/etc/profile is global. You can add anything you want (scripts execution, variable settings) in that script and it will be executed anytime someone logs on.&lt;BR /&gt;&lt;BR /&gt;$HOME/.profile is personal, and different for each user. You can set up your own env using this file. It is created upon user creation by copy of /etc/skell/.profile (if you want something to be in everybody .profile, change it here for future users).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jun 2005 04:25:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908406#M831240</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2005-06-22T04:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: automatically execute a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908407#M831241</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please note that it works different if using  a GUI (e.g. CDE). CDE uses the file .dtlogin instead. If you want CDE to read the .profile you must set the variable DTSOURCEPROFILE=true in .dtprofile.</description>
      <pubDate>Wed, 22 Jun 2005 08:48:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908407#M831241</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2005-06-22T08:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: automatically execute a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908408#M831242</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please note that it works different if using  a GUI (e.g. CDE). CDE uses the file .dtprofile instead. If you want CDE to read the .profile you must set the variable DTSOURCEPROFILE=true in .dtprofile.</description>
      <pubDate>Wed, 22 Jun 2005 08:49:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908408#M831242</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2005-06-22T08:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: automatically execute a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908409#M831243</link>
      <description>&lt;BR /&gt;Sorry for the double posts, ignore the first one, there was an error in it (.dtlogin instead of .dtprofile)</description>
      <pubDate>Wed, 22 Jun 2005 08:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908409#M831243</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2005-06-22T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: automatically execute a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908410#M831244</link>
      <description>Thank you. I understand.</description>
      <pubDate>Wed, 29 Jun 2005 08:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatically-execute-a-script/m-p/4908410#M831244</guid>
      <dc:creator>Roxana_4</dc:creator>
      <dc:date>2005-06-29T08:45:44Z</dc:date>
    </item>
  </channel>
</rss>

