Re: Cronjob Cvsup - What?

2013-01-27 Thread Zyumbilev, Peter
On 27/01/2013 06:34, Lowell Gilbert wrote: If you needed version control features on your ports tree (especially if you were regularly contributing changes to ports), getting and updating your tree through subversion would have some extra features you might want, but it doesn't sound as if

Re: Cronjob Cvsup - What?

2013-01-27 Thread Matthew Seaman
On 27/01/2013 00:11, W. D. wrote: What would be the best Cron command to keep ports updated on a daily basis? Try this as a crontab entry: 0 3 * * * * /usr/sbin/portsnap cron update Two points to note: 1) The 'cron' verb is important for anyone setting up an automated job like this.

Re: Cronjob Cvsup - What?

2013-01-27 Thread Mike Clarke
On Sunday 27 Jan 2013 09:46:51 Matthew Seaman wrote: to get yourself a portsnap-ready copy of the ports tree. You only need to do that once, but you should move aside any pre-existing copy of /usr/ports obtained by any means other than portsnap(8) before you do (but keep anything under

Re: Cronjob Cvsup - What?

2013-01-27 Thread Matthew Seaman
On 27/01/2013 08:35, Zyumbilev, Peter wrote: Last 10 years I am using cvsup. Any good guide for the transition to subversion ? Most of the guides around freebsd.org are aimed at developers who will be using SVN read-write. For simple read-only use (ie. not checking anything into the

Re: Cronjob Cvsup - What?

2013-01-27 Thread Matthew Seaman
On 27/01/2013 10:07, Mike Clarke wrote: I suppose the best approach with ZFS would be to make a snapshot immediately prior to running portsnap. Yes. That would do the trick quite neatly. In fact, snapshot before each time you run portsnap. Cheers Matthew -- Dr Matthew J

Re: Cronjob Cvsup - What?

2013-01-27 Thread Zyumbilev, Peter
On 27/01/2013 12:46, Matthew Seaman wrote: Cheers, Matthew Matthew, Fantastic howto ! Thanks ! Really a good job...as usual :-) Peter ___ freebsd-questions@freebsd.org mailing list

Re: Cronjob Cvsup - What?

2013-01-27 Thread MFV
Hello Matthew, Thanks for an outstanding piece of documentation. It resolves a number of concerns I had and convinced me to move from portsnap where I discovered an apparent bug that gave me security concerns. More specifically I manually edited /usr/ports/UPDATING and portsnap did not

Re: Cronjob Cvsup - What?

2013-01-27 Thread Steve O'Hara-Smith
On Sun, 27 Jan 2013 09:51:12 -0500 MFV mrk...@acm.org wrote: The only downside with svn seems to be the 728 MB footprint. With hard disc space running at around 10c per gigabyte it's a minor issue. -- Steve O'Hara-Smith st...@sohara.org ___

Re: Cronjob Cvsup - What?

2013-01-27 Thread Robert Huff
Steve O'Hara-Smith writes: The only downside with svn seems to be the 728 MB footprint. With hard disc space running at around 10c per gigabyte it's a minor issue. Doesn't that depend on whose money it is? Robert Huff

Re: Cronjob Cvsup - What?

2013-01-27 Thread Warren Block
On Sun, 27 Jan 2013, Matthew Seaman wrote: 2) Choose a protocol for access the SVN servers. Your choices in order of preference are svn:// https:// http:// Use svn:// for best performance. If you're concerned about MITM attacks injecting trojans into the

Re: Cronjob Cvsup - What?

2013-01-27 Thread RW
On Sun, 27 Jan 2013 09:51:12 -0500 MFV wrote: Hello Matthew, Thanks for an outstanding piece of documentation. It resolves a number of concerns I had and convinced me to move from portsnap where I discovered an apparent bug that gave me security concerns. More specifically I manually

Re: Cronjob Cvsup - What?

2013-01-26 Thread Lowell Gilbert
W. D. w...@us-webmasters.com writes: According to: http://www.freebsd.org/news/2012-compromise.html Cvsup is deprecated. If I have a Cron entry like: #- #Min HrDOM Mnth DOW Command # At 3:46 in the morning,

Re: Cronjob

2009-06-11 Thread Danijel Tasov
Paul Chvostek wrote: 0 1 28-31 * * test `date -v+1d '+%d'` -eq 1 /path/to/script You have to escape the percent sign in crontab with \: run. The entire command portion of the line, up to a newline or % character, will be executed by /bin/sh or by the shell specified

Re: Cronjob

2009-06-09 Thread Jonathan McKeown
On Monday 08 June 2009 17:37:14 Jerry McAllister wrote: On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote: may be this solution will help you: [snip] * * 31 1/2 * * * 30 4/2 * * * 28 2 * This isn't right, surely? It goes wrong in August and stays wrong for the rest of the

Re: Cronjob

2009-06-09 Thread Peter Andreev
yes, you're right, thank you/ the right version will be: * * 31 1,3,5,7,8,10,12 * * * 30 4,6,9,11 * * * 28,29 2 * 2009/6/9 Jonathan McKeown j.mcke...@ru.ac.za On Monday 08 June 2009 17:37:14 Jerry McAllister wrote: On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote: may be this

Re: Cronjob

2009-06-09 Thread Jos Chrispijn
Mike Jeays wrote: Isn't that a linuxism? Looking at the man pages for the date command for FreeBSD, it looks as if 'date -v+1d' will return tomorrow's date (and it does, I checked). The -d option is to do with daylight saving time. - eot- I see; will have that incorporated in the script.

Re: Cronjob

2009-06-08 Thread Neal Hogan
On Mon, Jun 8, 2009 at 7:55 AM, Jos Chrispijn j...@webrz.net wrote: I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? If it really needs to be done on

Re: Cronjob

2009-06-08 Thread Steve Bertrand
Jos Chrispijn wrote: I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? Solving this in the script to be executed is no option. I've done this before. My

Re: Cronjob

2009-06-08 Thread Wojciech Puchar
put 12 lines, for each month and with the last day. On Mon, 8 Jun 2009, Jos Chrispijn wrote: I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? Solving

Re: Cronjob

2009-06-08 Thread Paul Chvostek
Hi Jos, On Mon, Jun 08, 2009 at 02:55:56PM +0200, Jos Chrispijn wrote: I would like to execute a script on every last day of the month in my crontab. Can someone tell me how I should solve that as it doesn't know which month day is the last day of the month? Solving this in the script to

Re: Cronjob

2009-06-08 Thread Peter Andreev
may be this solution will help you: * * 31 jan,mar,may,jul,aug,oct,dec * * * 30 apr,jun,sep,nov * * * 28 feb * or: * * 31 1/2 * * * 30 4/2 * * * 28 2 * 2009/6/8 Jos Chrispijn j...@webrz.net I would like to execute a script on every last day of the month in my crontab. Can someone tell me

Re: Cronjob

2009-06-08 Thread Jerry McAllister
On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote: may be this solution will help you: * * 31 jan,mar,may,jul,aug,oct,dec * * * 30 apr,jun,sep,nov * * * 28 feb * or: * * 31 1/2 * * * 30 4/2 * * * 28 2 * Don't forget leapyear. jerry 2009/6/8 Jos Chrispijn

Re: Cronjob

2009-06-08 Thread Warren Block
On Mon, 8 Jun 2009, Jerry McAllister wrote: On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote: may be this solution will help you: * * 31 jan,mar,may,jul,aug,oct,dec * * * 30 apr,jun,sep,nov * * * 28 feb * or: * * 31 1/2 * * * 30 4/2 * * * 28 2 * Don't forget leapyear. 0 0

Re: Cronjob

2009-06-08 Thread Karl Vogel
On Mon, 08 Jun 2009 14:55:56 +0200, Jos Chrispijn j...@webrz.net said: J I would like to execute a script on every last day of the month in my J crontab. Can someone tell me how I should solve that as it doesn't know J which month day is the last day of the month? Solving this in the script

Re: Cronjob

2009-06-08 Thread Jos Chrispijn
Found another solution (for running @ 23:58): 58 23 * * * [ `date -d tomorrow +%d` -eq '01' ] /myscript thanks for all other suggestions, Jos Chrispijn ___ freebsd-questions@freebsd.org mailing list

Re: Cronjob

2009-06-08 Thread Mike Jeays
-- Mike Jeays http://www.jeays.ca http://www.rotarycpmm.ca On June 8, 2009 02:56:31 pm Jos Chrispijn wrote: Found another solution (for running @ 23:58): 58 23 * * * [ `date -d tomorrow +%d` -eq '01' ] /myscript thanks for all other suggestions, Jos Chrispijn

Re: cronjob doesn't run???

2004-12-27 Thread Tom Vilot
Might be a path issue. I had similar issues with cron (/etc/periodic/daily) if I didn't use a full path to the binaries. :c( i have an odd problem with this cronjob, #!/bin/sh cd /home/timothy burncd -f /dev/acd0c blank tar -zcvf ./burning/thunderbird.tar.gz ./.thunderbird/* tar -zcvf