Re: [ast-users] crontab overwritten in gentoo
Status: Beta
Brought to you by:
mwilliamson
|
From: Michael W. <msw...@uw...> - 2006-11-16 00:01:58
|
Actually its just:
crontab -l (to view)
crontab -e (to edit, opens with emacs, nano or vi)
and
crontab file (loads file in, replacing existing).
A quick script to do this:
crontab -l > tmp
cat ${MY_INSTALLDIR}/share/example/crontab >> tmp
crontab tmp
On Wednesday 15 November 2006 18:33, Anthony Ettinger wrote:
> Ahh...I wasn't sure. I figured the command would do both.
>
> I would add both commands to the output:
>
> To view your existing crontab:
> crontab -l ${MY_INSTALLDIR}/share/example/crontab
>
> To merge with your existing crontab:
> crontab -e ${MY_INSTALLDIR}/share/example/crontab
>
> To overwrite your existing crontab or install a new one:
> crontab ${MY_INSTALLDIR}/share/example/crontab
>
> On 11/15/06, Michael Williamson <msw...@uw...> wrote:
> > The postinstall says:
> >
> > 1. Install the example crontab (or merge with your existing):
> > crontab ${MY_INSTALLDIR}/share/example/crontab
> >
> > I guess that isn't very clear (except for saying your should merge) that
> > it will overwrite your crontab. I changed the directions to:
> >
> > 1. Merge the sample crontab in ${MY_INSTALLDIR}/share/example/crontab
> > with your existing crontab (crontab -l to view, crontab -e to edit). If
> > your crontab is blank, you can replace it with the sample:
> > crontab ${MY_INSTALLDIR}/share/example/crontab # THIS WILL OVERWRITE
> > YOUR EXISTING CRONTAB
> >
> > Thanks.
> >
> > On Wednesday 15 November 2006 16:30, Anthony Ettinger wrote:
> > > On 11/15/06, Michael Williamson <msw...@uw...> wrote:
> > > > Hi Anthony,
> > > >
> > > > Sorry for overwriting you crontab! I know that can be a real pain if
> > > > you don't know what was in there. How did you install ast?
> > > >
> > > > 1. Using the install.pl script?
> > > > 2. Following the directions in INSTALL.
> > > > 3. Directions from the website?
> > > > 4. Gentoo ebuild?
> > >
> > > Gentoo ebuild.
> > > It was after the ebuild finished, the output said to install it, which
> > > overwrote my original.
> > >
> > > I've sinced added /var/spool to my rsnapshot tree. Lesson learned.
> > >
> > > -----------------------------------------------------------------------
> > >-- Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > > your opinions on IT & business topics through brief surveys - and earn
> > > cash
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD
> > >EV _______________________________________________
> > > ast-users mailing list
> > > ast...@li...
> > > https://lists.sourceforge.net/lists/listinfo/ast-users
|