<?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: Running a shell script continuously after exiting the login session in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706491#M250375</link>
    <description>Hi Shiva,&lt;BR /&gt;   use nohup. It will continue to operate, even when u close your session. It will send the output to the file name nohup.out. Even you can specify your own file, where the output can be stored.&lt;BR /&gt;&lt;BR /&gt;EX:&lt;BR /&gt;   nohup test1.sh &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Prabu.S</description>
    <pubDate>Tue, 10 Jan 2006 23:28:36 GMT</pubDate>
    <dc:creator>Senthil Prabu.S_1</dc:creator>
    <dc:date>2006-01-10T23:28:36Z</dc:date>
    <item>
      <title>Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706488#M250372</link>
      <description>Dear Sir,&lt;BR /&gt;&lt;BR /&gt;i am runnig a shell script  test1.sh and recording its out in a file test2. I used the command $./test1.sh &amp;gt;&amp;gt;test2 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;But when i exited xterm session (login session) the script stopped. I wanted to run it continuously even if i logged out. How to do it ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Tue, 10 Jan 2006 23:21:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706488#M250372</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2006-01-10T23:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706489#M250373</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;because u r running it off as a job at the background, either u do not exit/logoff or setup as a cron job.&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Tue, 10 Jan 2006 23:26:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706489#M250373</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2006-01-10T23:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706490#M250374</link>
      <description>You need to use nohup:&lt;BR /&gt;&lt;BR /&gt;nohup command $./test1.sh &amp;gt;&amp;gt;test2 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;This will create a nohup.out file in the directory you execute it in.</description>
      <pubDate>Tue, 10 Jan 2006 23:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706490#M250374</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-01-10T23:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706491#M250375</link>
      <description>Hi Shiva,&lt;BR /&gt;   use nohup. It will continue to operate, even when u close your session. It will send the output to the file name nohup.out. Even you can specify your own file, where the output can be stored.&lt;BR /&gt;&lt;BR /&gt;EX:&lt;BR /&gt;   nohup test1.sh &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Prabu.S</description>
      <pubDate>Tue, 10 Jan 2006 23:28:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706491#M250375</guid>
      <dc:creator>Senthil Prabu.S_1</dc:creator>
      <dc:date>2006-01-10T23:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706492#M250376</link>
      <description>Hi Shiv, &lt;BR /&gt;&lt;BR /&gt;"nohup" is the command that will help you. &lt;BR /&gt;nohup - run a command immune to hangups&lt;BR /&gt;&lt;BR /&gt;You can run as, &lt;BR /&gt;&lt;BR /&gt;$ nohup ./test1.sh &amp;gt;&amp;gt;test2 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 10 Jan 2006 23:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706492#M250376</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-10T23:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706493#M250377</link>
      <description>When you start a script it will take the shell base process ID will the uppper level Parent Process ID. &lt;BR /&gt;&lt;BR /&gt;You can avoid that by starting with su as,&lt;BR /&gt;&lt;BR /&gt;# su - &lt;USERNAME&gt; -c "&lt;FULL path=""&gt;/test1.sh 1&amp;gt;/tmp/test1.log 2&amp;gt;&amp;amp;1 &amp;amp;"&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;# cat /tmp/muthu/test1.sh&lt;BR /&gt;echo "script is started"&lt;BR /&gt;sleep 10&lt;BR /&gt;echo "script is end"&lt;BR /&gt;hostname&lt;BR /&gt;ls -l&lt;BR /&gt;# su - root -c "/tmp/muthu/test1.sh 1&amp;gt;/tmp/muthu/test.log 2&amp;gt;&amp;amp;1 &amp;amp;"&lt;BR /&gt;&lt;BR /&gt;it is working after log out too.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu&lt;/FULL&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Tue, 10 Jan 2006 23:33:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706493#M250377</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-01-10T23:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706494#M250378</link>
      <description>Shiv, "nohup" is better way of executing your shell scripts. You dont need to "su" and execute it. &lt;BR /&gt;&lt;BR /&gt;You can see more information at, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.computerhope.com/unix/unohup.htm" target="_blank"&gt;http://www.computerhope.com/unix/unohup.htm&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.livefirelabs.com/unix_tip_trick_shell_script/june_2003/06022003.htm" target="_blank"&gt;http://www.livefirelabs.com/unix_tip_trick_shell_script/june_2003/06022003.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 10 Jan 2006 23:38:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706494#M250378</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-10T23:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706495#M250379</link>
      <description>we can use su too. Don't worry. Try to find whether solution is working or not ;)&lt;BR /&gt;&lt;BR /&gt;nohup is another way to achive it. It is like it will execute the process until it is getting completed. &lt;BR /&gt;&lt;BR /&gt;Su is like it will create another process which will not be controlled by currently logged shell.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Tue, 10 Jan 2006 23:41:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706495#M250379</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-01-10T23:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706496#M250380</link>
      <description>Muthu,&lt;BR /&gt;&lt;BR /&gt;And it is not advised to use "SU" while running a script. It may lead to a security lapse..:-)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Prabu.S</description>
      <pubDate>Tue, 10 Jan 2006 23:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706496#M250380</guid>
      <dc:creator>Senthil Prabu.S_1</dc:creator>
      <dc:date>2006-01-10T23:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706497#M250381</link>
      <description>I would say, "nohup" is the primay way. If it doesn't help you by any changes, you can go for "su". But, remember this is a big security hole in a production environment and could lead to hazards. Secuirty is the prime in today's world .&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 10 Jan 2006 23:59:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706497#M250381</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-10T23:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706498#M250382</link>
      <description>prabhu,&lt;BR /&gt;&lt;BR /&gt;If you are running as a same user then it is not a problem to do right? :)&lt;BR /&gt;&lt;BR /&gt;Like &lt;BR /&gt;&lt;BR /&gt;user -&amp;gt; su to same user.&lt;BR /&gt;&lt;BR /&gt;It is a thought to reach the destination. Dream yourself to get more ways. Don't using same way always ;)&lt;BR /&gt;&lt;BR /&gt;==&lt;BR /&gt;&lt;BR /&gt;Shiv,&lt;BR /&gt;&lt;BR /&gt;Simple way is to use nohup. You can go with su or as well as telnet + piping() program too.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Wed, 11 Jan 2006 00:03:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706498#M250382</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-01-11T00:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706499#M250383</link>
      <description>Hi Shiv,&lt;BR /&gt;you have to use nohup:&lt;BR /&gt;nohup ./test1.sh &amp;gt;&amp;gt;test2 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;I suggest you to redircet the stderr (2) to the stdout (1) otherwise you will find it in the nohup.out file.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jan 2006 04:04:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706499#M250383</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-01-12T04:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Running a shell script continuously after exiting the login session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706500#M250384</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;I would also use the fully qualified path when using nohup.&lt;BR /&gt;$nohup /dir/dir/test1.sh &amp;gt;&amp;gt;test2 2&amp;gt;&amp;amp;1 &amp;amp;</description>
      <pubDate>Thu, 12 Jan 2006 08:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-a-shell-script-continuously-after-exiting-the-login/m-p/3706500#M250384</guid>
      <dc:creator>Steve Andrews_6</dc:creator>
      <dc:date>2006-01-12T08:56:31Z</dc:date>
    </item>
  </channel>
</rss>

