From: "Sukumar Alagappan" <sukumar@uscom.com>
Subject: Re:Restore original crontab file
Date: 1996/10/30 [thread overview]
Message-ID: <01bbc5ff$11dab9a0$4e10d8cc@sukumar.uscom.com> (raw)
Benjie Gandionco <benjieg@corp.nsc.com> wrote in article
> I accidently overwrote the existing root crontab file on our AS 2100.
How
> can I restore it? We have anther DU on an AS600. Can I just copy the
root
> crontab file from there?
>
> Thanks,
> Benjie
>
>
Dear Mr.Benjie
You can restore the root crontab file from a backup copy(available on
your other m/c AS 600), by doing the following
1) Login as root on the machine that lost the root crontab file
2) # crontab -e
3) :r savecopy <inside vi>
4) :wq <inside vi>
crontab -e basically allows you to edit the crontab file of the logged user
and throws up a vi session. So just restore it by reading in the backup
file and saving it.
5)# crontab -l
This will list out all the crontab entries for your verfication. You can
change
them if you want, by running crontab -e again.
Hope this info helps you
Sincerely
Sukumar Alagappan
--
The opinion expressed in this letter are my own and
do not reflect anybody else's.
reply other threads:[~1996-10-30 5:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox