mistakenly issued crontab -r

HPUX 11 (32bit)

An ordinary user (not root) had mistakenly issued "crontab -r" which removed the crontab file corresponds to his user_id. (well, on our keyboard R is next E, where "crontab -e" is to edit the crontab file)
:frowning:

Is there any way to recover the removed crontab file by that command?

Thank you.

There is nothing special for this exact situation. You will need to recover the crontab from a backup tape.

I would also like to add that when you do get your crontab file back, you cd /var/spool/cron/crontabs. The files you see in there are the crontab files currently running, one per cron user, i.e. root, adm, mail uucp, etc... You don't want to touch them in any way, but I would recommend that you save a copy of them somewhere safe, just for this type of eventuality. -mk