<?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: how to run script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338434#M343170</link>
    <description>by means of the question, if you mean where the static routes are configured at the startup time, the formal answer is, "in /etc/rc.config.d/netconf file", but this may not be it. I have seen some poorly written applications, which put a "route add..." command, into their startup scripts, which is as effective as the formal method, but I highle frown upon this, when it is time to troubleshoot something related to networking, such as a firewall change or similar. If you are looking for the currently running network configuration and related routing tables, "netstat -rn" or "netstat -rnv" (latter gives you the netmasks for the network routes) is the only way to obtain it.&lt;BR /&gt;&lt;BR /&gt;3. If you do not have root privilege, you can not modify the startup scripts. Otherwise unix would be the best platform to attack for script kiddies. Ask your sysadmin to put up a script to startup an application at the system boot time, if it is legitimate. Otherwise if you are trying to slip one without anyone noticing, giving you some sort of advantage, shame on you :)</description>
    <pubDate>Thu, 15 Jan 2009 14:17:08 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2009-01-15T14:17:08Z</dc:date>
    <item>
      <title>how to run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338431#M343167</link>
      <description>1. Is there any table or location where the present routing table(netstat -nr) or information has been stored. &lt;BR /&gt;3. I am non root user so no root priviledge with my account. I want to run a script at system startup. So, is it possible to run the script ?</description>
      <pubDate>Thu, 15 Jan 2009 13:27:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338431#M343167</guid>
      <dc:creator>arupdas</dc:creator>
      <dc:date>2009-01-15T13:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338432#M343168</link>
      <description>1) The routing table is usually stored in the kernel on most operating systems.&lt;BR /&gt;&lt;BR /&gt;3) You can ask root for this. You can also add an entry in your profile to execute a script when you log on.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;where is 2) ?</description>
      <pubDate>Thu, 15 Jan 2009 13:31:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338432#M343168</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-01-15T13:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338433#M343169</link>
      <description>1. Mention the path !!&lt;BR /&gt;2. If i logging the system many times it will start many instances of that script. This is the reason for not using profile to run script. &lt;BR /&gt;&lt;BR /&gt;If there any way please describe step by step.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jan 2009 14:15:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338433#M343169</guid>
      <dc:creator>arupdas</dc:creator>
      <dc:date>2009-01-15T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338434#M343170</link>
      <description>by means of the question, if you mean where the static routes are configured at the startup time, the formal answer is, "in /etc/rc.config.d/netconf file", but this may not be it. I have seen some poorly written applications, which put a "route add..." command, into their startup scripts, which is as effective as the formal method, but I highle frown upon this, when it is time to troubleshoot something related to networking, such as a firewall change or similar. If you are looking for the currently running network configuration and related routing tables, "netstat -rn" or "netstat -rnv" (latter gives you the netmasks for the network routes) is the only way to obtain it.&lt;BR /&gt;&lt;BR /&gt;3. If you do not have root privilege, you can not modify the startup scripts. Otherwise unix would be the best platform to attack for script kiddies. Ask your sysadmin to put up a script to startup an application at the system boot time, if it is legitimate. Otherwise if you are trying to slip one without anyone noticing, giving you some sort of advantage, shame on you :)</description>
      <pubDate>Thu, 15 Jan 2009 14:17:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338434#M343170</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-01-15T14:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338435#M343171</link>
      <description>Answer to your Q3&lt;BR /&gt;in your .profile, you insert a block like this&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;MYSCRIPT=&lt;NAME_OF_YOUR_SCRIPT_HERE&gt;&lt;BR /&gt;ps -ef | grep -q "$MYSCRIPT"; r=${?}&lt;BR /&gt;if [ ${r} -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;nohup &lt;/NAME_OF_YOUR_SCRIPT_HERE&gt; &amp;amp;&lt;BR /&gt;else&lt;BR /&gt;echo "${MYSCRIPT} is already running"&lt;BR /&gt;fi&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;this will launch your script if it is not running somewhere in the memory, and if it is running, it will not start a second instance but just give you the message it is already running.&lt;BR /&gt;&lt;BR /&gt;hope this helps</description>
      <pubDate>Thu, 15 Jan 2009 14:26:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338435#M343171</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-01-15T14:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338436#M343172</link>
      <description>&amp;gt; I am non root user &lt;BR /&gt;If you are not a root user, what are you doing working on network routes?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; netstat -nr&lt;BR /&gt;&lt;BR /&gt;/usr/bin/netstat has -r-xr-sr-x permissions. Why can you not run it as a regualr user?&lt;BR /&gt;If someone changed the permissions, you can ask to change them back or you can ask your root to install sudo and allow you to run the command when you need it.</description>
      <pubDate>Thu, 15 Jan 2009 14:33:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338436#M343172</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-01-15T14:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338437#M343173</link>
      <description>You take this query as a gathering information not for problem . &lt;BR /&gt;For monitoring netstat -nr is working i know....</description>
      <pubDate>Thu, 15 Jan 2009 14:57:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338437#M343173</guid>
      <dc:creator>arupdas</dc:creator>
      <dc:date>2009-01-15T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to run script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338438#M343174</link>
      <description>Then "sudo" is the answer for what you need. It is part of internet express&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20392.www2.hp.com/portal/swdepot/searchProducts.do" target="_blank"&gt;http://h20392.www2.hp.com/portal/swdepot/searchProducts.do&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In the meantime you should also look in&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/helptips.do?#faq" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/helptips.do?#faq&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/helptips.do?#34" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/helptips.do?#34&lt;/A&gt;</description>
      <pubDate>Thu, 15 Jan 2009 16:40:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-run-script/m-p/4338438#M343174</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-01-15T16:40:52Z</dc:date>
    </item>
  </channel>
</rss>

