Can we call crontab -e into .profile?

Hi All,

I have a doubt that can we call under whatever scripts we mention in crontab -e into .profile .

Because every weekend my server is going to restart so, my doubt whether crontab -e will automatically run my scripts or manually we have to save the crontab -e again?

If that crontab -e should not run automatically after restarted the server , It creates problem. So please clarify my doubt any one.?

My idea is can we place this crontab -e into .profile so When the server starts it runs. This idea will work or not? If yes how to implement this Idea?

Thanks in advance

Srivani K

crontab -e is the command used to edit the crontab file. I think what your talking about is making sure the cron deamon is started after a reboot. The deamon is the process which reads crontab files and kicks off the commands and scripts specified within those files.

see man Man Page for cron (OpenSolaris Section 1m) - The UNIX and Linux Forums

Thanks for your reply ...

Regards
Srivani K

cron saves cron tables in files, which are not lost on reboot. rebooting is no problem, cron won't forget.