<div>Thank you very much for your reply . Can you please do me favor and let me know where I have to check for the scripts that may wipe out these files on reboot ? How can I check if /var/spool on transient storage ?</div>

<div>Please be informed that I have two CentOS servers , one is running CentOS 5.0 and the other is CentOS5.2 . For the CentOS5.2 , the cron job does not disappear after server reboot but for the 5.0 one it does . Can you please let me know what is wrong here ?</div>

<div>Thank you in advance</div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Oct 28, 2009 at 5:16 AM, John R Pierce <span dir="ltr"><<a href="mailto:pierce@hogranch.com">pierce@hogranch.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">hadi motamedi wrote:<br>> Dear All<br>> Please be informed that I have an CentOS 5 server and I need it to be<br>> automatically rebooted at pre-specified times . To this end , I tried<br>> to set it as its crontab job as the followings :<br>
> #crontab -e<br>> 30 15 * * * reboot<br>> It got through but after the server first reboot the crontab job<br>> disappeared . So I tried to set it in another way , as the followings :<br>> set the cron list in /tmp/temp<br>
> add the following lines to /etc/rc.local :<br>> crontab /tmp/temp<br>> But still the crontab job will disappear after the server first reboot<br>> . Can you please do me favor and let me know how can I make the<br>
> crontab job permanent on my CentOS server even after server reboot ?<br>> Let me thank you in advance<br>><br><br><br></div></div>crontab -e    /should/ be editing the file /var/spool/cron/$USER<br><br>and crond reads /var/spool/cron/* to decide what to do.<br>
<br>do you have scripts that are wiping out these files on reboot?  or is<br>/var/spool on a transient (non-persistent) storage ?<br><br><br>_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br></blockquote></div><br>