Thanks for your quick reply.....<br><br><div class="gmail_quote">On Tue, Jun 29, 2010 at 6:14 AM, Cameron Simpson <span dir="ltr"><<a href="mailto:cs@zip.com.au">cs@zip.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 28Jun2010 10:16, Christopher L. Barnard <<a href="mailto:cbarnard@rush.edu">cbarnard@rush.edu</a>> wrote:<br>
| On Mon, 2010-06-28 at 15:08 +0530, Pravin Uttam Kharat wrote:<br>
</div><div class="im">| > I have RHEL 5 I installed Bitnami Joomla on it.I want to configure a<br>
| > startup script which run that script when RHEL 5 Machine start and<br>
| > automatically shut down machine on mentioned time. Please suggest any<br>
| > tool for this......<br>
|<br>
</div>| [ Excellent description of the SnnFOO script scheme... ]<br>
<div class="im">| You can put it all in one script, and that is much easier for other<br>
| individuals to understand what you are doing.  For 'start', the script<br>
| is called with the command line parameter of "start".   Likewise 'stop'<br>
| is called with the command line parameter of "stop".  So just switch on<br>
| the command line parameter and you can put the script in /etc/init.d<br>
| with a symlink to /etc/rc2.d/S****** and to /etc/rc0.d/K******<br>
<br>
</div>And for your second requirement, have the "start" script use the "at"<br>
command to schedule a run of the "stop" script at a suitable time.<br>
<font color="#888888">--<br>
Cameron Simpson <<a href="mailto:cs@zip.com.au">cs@zip.com.au</a>> DoD#743<br>
<a href="http://www.cskk.ezoshosting.com/cs/" target="_blank">http://www.cskk.ezoshosting.com/cs/</a><br>
<br>
It is better never to have been born. But who among us has such luck?<br>
</font><div><div class="h5"><br>
_______________________________________________<br>
rhn-users mailing list<br>
<a href="mailto:rhn-users@redhat.com">rhn-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhn-users" target="_blank">https://www.redhat.com/mailman/listinfo/rhn-users</a><br>
</div></div></blockquote></div><br>