On Thursday 18 December 2003 19:14, Payal Rathod wrote: > Hi, > I want to execute a couple of program like for example, > > # uptime >> /var/log/uptime.log > # hwclock --systohc > > etc. > Which is the best way to execute them, when the system goes for > halt/reboot?
Check /etc/rc.d/rc.6 for a normal distro. Over here in archlinux I ave /etc/ rc.shutdown and on slackware I have /etc/rc.d/rc.6 Make a custom script and call it from the same. So that you won't have to maintain a system script. HTH Shridhar ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
