How to restore crontab file
today working was teribble, i was log in at one solaris unix box. i was at [/]. tah maciam mana i tertaip ‘crontab -r’. abihhh punah semua terdelete. then i do ‘crontab -l’, it was not there, alamakkkk, what to do, arghhhhh uhhhh ahhhh ihhh uhhhhh..hehe
i wanna to tell my boss but afraid maaa, then i start thinks what to do. i telnet to another unix box, then i do ‘crontab -l’, it was there and same like the previous unix box that i deleted…..
ahhHHHhhHHhh..lega. i try restore back the scripts using vi.
here the location file :
#var/spool/cron/root/crontabs
# vi root
-restore and save
here some info regarding crontab, it might useful for u guys…..hehe
export EDITOR=vi ;to specify a editor to open crontab file.
crontab -e Edit your crontab file, or create one if it doesn’t already exist.
crontab -l Display your crontab file.
crontab -r Remove your crontab file.
crontab -v Display the last time you edited your crontab file. (This option is only available on a few systems.)
crontab/cron = jobs scheduling
