Thread: [ast-users] crontab overwritten in gentoo
Status: Beta
Brought to you by:
mwilliamson
|
From: Anthony E. <an...@ch...> - 2006-11-15 07:02:07
|
I just installed ast and it overwrote my root's crontab! (please update the docs or script, whatever told me to do it that way). -- Anthony Ettinger phone: 408-656-2473 resume: http://chovy.dyndns.org/resume.html Currently available for contract work blog: http://www.chovy.com |
|
From: Michael W. <msw...@uw...> - 2006-11-15 15:43:24
|
Hi Anthony, Sorry for overwriting you crontab! I know that can be a real pain if you do= n't=20 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? Thanks! =2D- Michael. On Wednesday 15 November 2006 02:02, Anthony Ettinger wrote: > I just installed ast and it overwrote my root's crontab! > > (please update the docs or script, whatever told me to do it that way). |
|
From: Anthony E. <an...@ch...> - 2006-11-15 21:30:29
|
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. |
|
From: Michael W. <msw...@uw...> - 2006-11-15 21:55:19
|
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=
=20
will overwrite your crontab. I changed the directions to:
1. Merge the sample crontab in ${MY_INSTALLDIR}/share/example/crontab with=
=20
your existing crontab (crontab -l to view, crontab -e to edit). If your=20
crontab is blank, you can replace it with the sample:
crontab ${MY_INSTALLDIR}/share/example/crontab # THIS WILL OVERWRITE YOU=
R=20
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 ca=
sh
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV
> _______________________________________________
> ast-users mailing list
> ast...@li...
> https://lists.sourceforge.net/lists/listinfo/ast-users
|
|
From: Anthony E. <an...@ch...> - 2006-11-15 23:33:31
|
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=DEVDEV
> > _______________________________________________
> > ast-users mailing list
> > ast...@li...
> > https://lists.sourceforge.net/lists/listinfo/ast-users
>
>
>
--
Anthony Ettinger
phone: 408-656-2473
resume: http://chovy.dyndns.org/resume.html
Currently available for contract work
blog: http://www.chovy.com
|
|
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
|
|
From: Anthony E. <an...@ch...> - 2006-11-16 00:44:45
|
I'm wondering if there's an option to crontab to merge a file, rather
than overwrite.
On 11/15/06, Michael Williamson <msw...@uw...> wrote:
> 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
>
>
>
--
Anthony Ettinger
phone: 408-656-2473
resume: http://chovy.dyndns.org/resume.html
Currently available for contract work
blog: http://www.chovy.com
|