<?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 Unix Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365256#M346607</link>
    <description>I am running a script for fsck and mount operation for some filesystems. at the end of the script I want to call script2 and exit or continue from main script, without waiting for the completion/result of second script(script2).&lt;BR /&gt;&lt;BR /&gt;Kindly suggest how to call the second script.</description>
    <pubDate>Tue, 24 Feb 2009 13:12:21 GMT</pubDate>
    <dc:creator>sum vedak</dc:creator>
    <dc:date>2009-02-24T13:12:21Z</dc:date>
    <item>
      <title>Unix Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365256#M346607</link>
      <description>I am running a script for fsck and mount operation for some filesystems. at the end of the script I want to call script2 and exit or continue from main script, without waiting for the completion/result of second script(script2).&lt;BR /&gt;&lt;BR /&gt;Kindly suggest how to call the second script.</description>
      <pubDate>Tue, 24 Feb 2009 13:12:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365256#M346607</guid>
      <dc:creator>sum vedak</dc:creator>
      <dc:date>2009-02-24T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365257#M346608</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;At the end of script1, call script2 to run in the background and return to shell using &amp;amp;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Feb 2009 13:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365257#M346608</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-02-24T13:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365258#M346609</link>
      <description>Hi , thankz..&lt;BR /&gt;i tried in background also...but it is waiting till second script completes, then it continues the next line..</description>
      <pubDate>Tue, 24 Feb 2009 13:55:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365258#M346609</guid>
      <dc:creator>sum vedak</dc:creator>
      <dc:date>2009-02-24T13:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365259#M346610</link>
      <description>do you mean you remsh or ssh script1 ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if yes, then you need to do&lt;BR /&gt;&lt;BR /&gt;nohup script2 /dev/null  2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;- if you want the errors and output of that scrip then&lt;BR /&gt;nohup script2 /tmp/result 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Feb 2009 14:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365259#M346610</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-02-24T14:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365260#M346611</link>
      <description>This is ssh script. Can u explain in detail whay nohup will do ?</description>
      <pubDate>Wed, 25 Feb 2009 06:09:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365260#M346611</guid>
      <dc:creator>sum vedak</dc:creator>
      <dc:date>2009-02-25T06:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365261#M346612</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Suppose I have 2 script /tmp/s1.sh and /tmp/s2.sh and i need both the script should run in a single shot.&lt;BR /&gt;in this case I have to make a 3rd file name &lt;BR /&gt;vi /tmp/main.sh&lt;BR /&gt;sh /tmp/s1.sh &amp;amp;&lt;BR /&gt;sh /tmp/s2.sh &amp;amp;&lt;BR /&gt;&lt;BR /&gt;save the file&lt;BR /&gt;&lt;BR /&gt;now run sh /tmp/main.sh&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Wed, 25 Feb 2009 06:44:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365261#M346612</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-02-25T06:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365262#M346613</link>
      <description>hi suraj,&lt;BR /&gt;&lt;BR /&gt;Actually I want to run another script2 through script1 and script1 should not wait for completion of script2.&lt;BR /&gt;&lt;BR /&gt;and second question is how can I write a script to check continously the contents of log file and once the particular string found in log file that script will do the required action.</description>
      <pubDate>Wed, 25 Feb 2009 08:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365262#M346613</guid>
      <dc:creator>sum vedak</dc:creator>
      <dc:date>2009-02-25T08:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365263#M346614</link>
      <description>Hi Sumit ,&lt;BR /&gt;&lt;BR /&gt; Call the second script "script2" as below ,&lt;BR /&gt;&lt;BR /&gt;script2.sh &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;It works&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sanil&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2009 09:51:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365263#M346614</guid>
      <dc:creator>Sani</dc:creator>
      <dc:date>2009-02-25T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365264#M346615</link>
      <description>Hi, &lt;BR /&gt;&amp;gt;&amp;gt;Actually I want to run another script2 through script1 and script1 should not wait for completion of script2.&lt;BR /&gt;&lt;BR /&gt;here also script 1 will not wait for script 2 if you call 2nd script from last line of the script 1 then it will executed once 1 st script will finish his job.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; and second question is how can I write a script to check continously the contents of log file and once the particular string found in log file that script will do the required action.&lt;BR /&gt;&lt;BR /&gt;If you wana search a string for a file then you have to used grep command and you have to run this command through crontab you can set 1 min to 59 minâ  s interval to search string from a file.&lt;BR /&gt;&lt;BR /&gt;Suraj&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2009 10:05:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365264#M346615</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-02-25T10:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365265#M346616</link>
      <description>nohup is made to make it insensitive to SIGHUP sent by the pty when the ptymaster is closed by ssh.&lt;BR /&gt;So it is usefull when you use ssh forcing the use of a pty  ( -t ) when doing a remote command&lt;BR /&gt;- or run an interactive ssh, start your script , exit from the ssh.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if no specific options are used, ssh will use pipes as stdin&amp;amp;out&amp;amp;err of the child process.&lt;BR /&gt;sshd will wait until all process using the other side of those pipes close it before exiting.&lt;BR /&gt;&lt;BR /&gt;so if you do not redirect inputs and outputs it  makes that sshd wait for that script to exit before exiting itself&lt;BR /&gt;&lt;BR /&gt;since it is pipes no SIGHUP is sent on closure, so nohup is not necessary if no -t option is used on ssh or if the script can't be start interactively.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2009 10:07:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script/m-p/4365265#M346616</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-02-25T10:07:51Z</dc:date>
    </item>
  </channel>
</rss>

