Friends :<br><br>Here is may first sample code<br><br>To keep a script running for ever<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><div style="margin-left: 40px;">
<span style="font-family: courier new,monospace;">#!/bin/bash</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">find /</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">find /</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">find /</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">find /</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">find /</span><br></div></blockquote><div><br>Then go to command line and typ<br>
<br><span style="font-family: courier new,monospace;">. ./p.sh</span> to start the process<br><br><br>After that in a sep window<br><br>type<br><br><span style="font-family: courier new,monospace;">pidof p.sh</span><br><br>
I expect to see a number, instead I see blank.<br><br>any idea how to get the pid of a <u>.sh command running.</u><br><br>-Narahari <br></div><br>