Re: crontab "last day of the month"

2010-04-06 Thread Jan Stary
On Apr 06 23:52:31, Antti Harri wrote: > On Tue, 6 Apr 2010, Jan Stary wrote: > >> No it's not. Unless you have some heavy traffic just around the midnight >> that is the border between months, the above newsyslog line makes >> the just-rotated access_log.0.gz contains the log of the >> month-that

Re: Soekris net5501 locks up with Ralink 2860 miniPCI

2010-04-06 Thread corey clingo
Some more info: 1. I checked the PSU with it plugged into a 5-ohm dummy load, and into the Soekris. With the dummy load, the voltage fell to 11.5 volts -- pretty crappy regulation, but still well within the Soekris' specs. The dummy load is drawing over 2A at that voltage. In the Soekris, the PS

Re: Soekris net5501 locks up with Ralink 2860 miniPCI

2010-04-06 Thread corey clingo
On Fri, Apr 2, 2010 at 6:07 PM, Stuart Henderson wrote: > In gmane.os.openbsd.misc, you wrote: >> Anyway, I'm looking for suggestions on how to proceed in >> troubleshooting this. > > I would try another OS with as different a driver as possible > (e.g. probably Linux). > > True, but if I put tha

Re: Strange read(2) behavior on powerpc.

2010-04-06 Thread Ludwig Mises
On Tue, Apr 6, 2010 at 9:41 PM, Ted Unangst wrote: >> s = (char *) malloc(st.st_size); > > If you didn't have bogus casts in your code, the compiler could tell > you what's wrong with it. You're right, and in fact, I put the cast there to hide that particular compiler warning without realizing t

Re: Strange read(2) behavior on powerpc.

2010-04-06 Thread Ludwig Mises
On Tue, Apr 6, 2010 at 7:22 PM, Philip Guenther wrote: > > $ gcc -Wall blah.c > blah.c: In function `main': > blah.c:16: warning: implicit declaration of function `exit' > blah.c:19: warning: implicit declaration of function `malloc' > blah.c:28: warning: implicit declaration of function `free' Y

Re: Strange read(2) behavior on powerpc.

2010-04-06 Thread Ted Unangst
On Tue, Apr 6, 2010 at 9:05 PM, Ludwig Mises wrote: > The following code exits cleanly (exit status 0) on i386, but on macppc exits 4: > s = (char *) malloc(st.st_size); If you didn't have bogus casts in your code, the compiler could tell you what's wrong with it.

Re: crontab "last day of the month"

2010-04-06 Thread Stuart Henderson
On 2010-04-06, frantisek holop wrote: > hmm, on Tue, Apr 06, 2010 at 03:01:17PM +0200, Bret S. Lambert said that >> I'm still not seeing what you're really getting, here; you're >> just pushing that spillover from one end to another, which >> are just as easily rationalized as "the casualties of l

Re: Strange read(2) behavior on powerpc.

2010-04-06 Thread Philip Guenther
On Tue, Apr 6, 2010 at 6:05 PM, Ludwig Mises wrote: > The following code exits cleanly (exit status 0) on i386, but on macppc exits > 4: ... > $ gcc -o blah blah.c ... > Is there something wrong with the .c program? Yes. $ gcc -Wall blah.c blah.c: In function `main': blah.c:16: warning: implici

Strange read(2) behavior on powerpc.

2010-04-06 Thread Ludwig Mises
The following code exits cleanly (exit status 0) on i386, but on macppc exits 4: #include #include #include #include #include #include int main() { int n; int fd; char *s; struct stat st; fd = open("./blah",O_RDONLY | O_NDELAY); if (fd == -1) { exit(1); } if (fstat(fd,&

Re: crontab "last day of the month"

2010-04-06 Thread frantisek holop
hmm, on Tue, Apr 06, 2010 at 03:01:17PM +0200, Bret S. Lambert said that > I'm still not seeing what you're really getting, here; you're > just pushing that spillover from one end to another, which > are just as easily rationalized as "the casualties of log > rotation." i get the correct name/numb

Tapetes de rato com ferias...

2010-04-06 Thread Marketing -RotaDaBorboleta
o;? Quem Somos? | + Produtos... | Be Smart (as marcas) | Pedido de cotacao | Vizualizar aqui | Remover | Apoio Comercial: Numero Nacional 808 203 228| www.rotadaborboleta.pt |www.be-smart.com.pt|

Re: crontab "last day of the month"

2010-04-06 Thread frantisek holop
hmm, on Tue, Apr 06, 2010 at 09:51:29PM +0200, Paul de Weerd said that > So you think it's my problem ? I showed two possible options, both > very workable (and easily extensible to add something simple as a > year). Yet... > > ...you choose to complain about the options I provided. i am humbled

Re: crontab "last day of the month"

2010-04-06 Thread Antti Harri
On Tue, 6 Apr 2010, Jan Stary wrote: No it's not. Unless you have some heavy traffic just around the midnight that is the border between months, the above newsyslog line makes the just-rotated access_log.0.gz contains the log of the month-that-just-ended. OK. How do I reliably get month and ye

Re: crontab "last day of the month"

2010-04-06 Thread Chris Bennett
Paul de Weerd wrote: On Tue, Apr 06, 2010 at 04:18:22PM +0200, frantisek holop wrote: | > Come on man .. 'can of worms' ?! It's not even a real challenge. | | you left off the year... So you think it's my problem ? I showed two possible options, both very workable (and easily extensible to add

Re: crontab "last day of the month"

2010-04-06 Thread Paul de Weerd
On Tue, Apr 06, 2010 at 04:18:22PM +0200, frantisek holop wrote: | > Come on man .. 'can of worms' ?! It's not even a real challenge. | | you left off the year... So you think it's my problem ? I showed two possible options, both very workable (and easily extensible to add something simple as a y

Re: encrypt downloads and hide them from ISP

2010-04-06 Thread Gonzalo Lionel Rodriguez
http://undeadly.org/cgi?action=article&sid=20100321135641 http://undeadly.org/cgi?action=article&sid=20091215120606 http://undeadly.org/cgi?action=article&sid=20091112032826 http://undeadly.org/cgi?action=article&sid=20091025011137 http://undeadly.org/cgi?action=article&sid=20090903183235 2010/4/6

Re: crontab "last day of the month"

2010-04-06 Thread Benny Lšöfgren
frantisek holop wrote: Come on man .. 'can of worms' ?! It's not even a real challenge. you left off the year... i'd rather not bloat my 3 line scripts with lookup tables and recursive date(1) calls, i prefer them easy and short. here's the full picture of the current situation: on 1. april i

encrypt downloads and hide them from ISP

2010-04-06 Thread openbsd
I saw software solution like ipredator or anchorfree, is it possible to build a thing like that using PF, ipsec, squid ? ssh? or anything else ? or need absolutely a vpn between ISP and the remote host (our computer) ? Thank's

Re: crontab "last day of the month"

2010-04-06 Thread Jan Stary
On Apr 06 16:39:51, Antti Harri wrote: > Hi all, > > I want to hijack this thread a little because it sounds like > OP has similar problem to mine. > > I'm rotating logs with newsyslog and for example for web logs > I keep 12 logs available (actually it looks like count=12 keeps 13 > files availabl

as-override equivalent for OpenBGPD

2010-04-06 Thread Casey Ransom
Hi All, I'm currently implementing some multi-site redundancy across data centers and I'm planning on doing it with a single AS. I can do it on my other JunOS routers via as-override (allows routes originating from an AS to be accepted by a router residing in the same AS), which is not the defaul

Re: crontab "last day of the month"

2010-04-06 Thread Sidarta Aguiar de Oliveira
Hello, You can put in your crontab something like that: 0 0 * * * if [ $(date '+%b') != $(date -r $(expr $(date '+%s') + 86400 ) '+%b') ]; then echo 'do something'; else echo 'do nothing'; fi This will execute everyday. This calculates the month of the next day and compare with the actual month.

Re: Using RDomain setup with pf(4) and bgpd(8)

2010-04-06 Thread Insan Praja SW
Hi All, On Tue, 06 Apr 2010 22:27:33 +0700, Claudio Jeker wrote: On Tue, Apr 06, 2010 at 09:42:05PM +0700, Insan Praja SW wrote: Hi Misc@, Has anyone try to setup bgpd(8) configuration with pf(4) specifically with rdomain? I'm trying to setup a simple VPN routing (VRF like) on openbsd 4.7.i

Re: Using RDomain setup with pf(4) and bgpd(8)

2010-04-06 Thread Claudio Jeker
On Tue, Apr 06, 2010 at 09:42:05PM +0700, Insan Praja SW wrote: > Hi Misc@, > Has anyone try to setup bgpd(8) configuration with pf(4) > specifically with rdomain? > I'm trying to setup a simple VPN routing (VRF like) on openbsd > 4.7.i386-current (15 march 2010). RTFM-ing the manual, I could only

Using RDomain setup with pf(4) and bgpd(8)

2010-04-06 Thread Insan Praja SW
Hi Misc@, Has anyone try to setup bgpd(8) configuration with pf(4) specifically with rdomain? I'm trying to setup a simple VPN routing (VRF like) on openbsd 4.7.i386-current (15 march 2010). RTFM-ing the manual, I could only come up with: 1. rtable on pf.conf is similar with rdomains. I do

Re: softraid rebuild hangs at 99%

2010-04-06 Thread Michael Lechtermann
Am 06.04.2010 15:41, schrieb Marco Peereboom: > You had a hardware error so the rebuild was halted. This needs some > prettying up but it comes down to a bad disk. The source disk has a > read error so I suggest you saving everything off the disk before > proceeding. > > I will write a patch to

Artwork village group in the extradition of gold in Burkina Faso

2010-04-06 Thread Zaki Rabo
Invitation : "Artwork village group in the extradition of gold in Burkina Faso". Par votre htte Zaki Rabo: aurifiri notre site est actuellement en production entre 60 et 70 kg d'or. 22carat plus natif par moi, pour un prix 15.000 par kg une barrihre ` raconter que l'extradition Notre iqui

Re: crontab "last day of the month"

2010-04-06 Thread frantisek holop
hmm, on Tue, Apr 06, 2010 at 02:40:03PM +0200, Paul de Weerd said that > What, really ?! > > The approach with a simple lookup table: > > PREVMONTH[1]="dec"; PREVMONTH[2]="jan"; PREVMONTH[3]="feb" > PREVMONTH[4]="mar"; PREVMONTH[5]="apr"; PREVMONTH[6]="may" > PREVMONTH[7]="jun"; PREVMONTH[8]="jul

Re: crontab "last day of the month"

2010-04-06 Thread L. V. Lammert
On Tue, 6 Apr 2010, Antti Harri wrote: > Hi all, > > I want to hijack this thread a little because it sounds like > OP has similar problem to mine. > > I'm rotating logs with newsyslog and for example for web logs > I keep 12 logs available (actually it looks like count=12 keeps 13 > files availab

Re: scrotwm with xrandr dual head

2010-04-06 Thread LEVAI Daniel
On Tue, Apr 06, 2010 at 08:38:05AM -0500, Marco Peereboom wrote: > On Tue, Apr 06, 2010 at 03:10:11PM +0200, LEVAI Daniel wrote: [...] > This is the correct behavior. Scrotwm unlike other WMs does not have > static areas where you move windows in and out. Instead it has regions > where you move w

Re: Where are TeX classes used by LyX ?

2010-04-06 Thread Christiano F. Haesbaert
On 6 April 2010 10:39, Christiano F. Haesbaert wrote: > Hi there, > > I'm trying to use the template for creating an aa document em LyX, but > it says it can't render them cause it does not have the corresponding > TeX class. > > I've installed: > texlive_base-2009p3 (installed) > texlive_texmf-fu

Re: softraid rebuild hangs at 99%

2010-04-06 Thread Marco Peereboom
You had a hardware error so the rebuild was halted. This needs some prettying up but it comes down to a bad disk. The source disk has a read error so I suggest you saving everything off the disk before proceeding. I will write a patch to terminate the rebuild and make bioctl reflect that better.

Re: crontab "last day of the month"

2010-04-06 Thread Antti Harri
Hi all, I want to hijack this thread a little because it sounds like OP has similar problem to mine. I'm rotating logs with newsyslog and for example for web logs I keep 12 logs available (actually it looks like count=12 keeps 13 files available but anyway that's not my problem..), rotated month

Where are TeX classes used by LyX ?

2010-04-06 Thread Christiano F. Haesbaert
Hi there, I'm trying to use the template for creating an aa document em LyX, but it says it can't render them cause it does not have the corresponding TeX class. I've installed: texlive_base-2009p3 (installed) texlive_texmf-full-2009p1 (installed) texlive_texmf-minimal-2009p0 (installed) I've tr

Re: scrotwm with xrandr dual head

2010-04-06 Thread Marco Peereboom
On Tue, Apr 06, 2010 at 03:10:11PM +0200, LEVAI Daniel wrote: > Hi! > > I'm using scrotwm on a laptop with a monitor connected. Scrotwm > detects the dual head setup, but acts funny regarding the screens. > First of all when scrotwm starts, it starts on 1:1 and 2:2 screens > on the two displays re

Re: scrotwm with xrandr dual head

2010-04-06 Thread Chris Bennett
LEVAI Daniel wrote: Hi! I'm using scrotwm on a laptop with a monitor connected. Scrotwm detects the dual head setup, but acts funny regarding the screens. First of all when scrotwm starts, it starts on 1:1 and 2:2 screens on the two displays respectively. Maybe this is intentional, but I think t

scrotwm with xrandr dual head

2010-04-06 Thread LEVAI Daniel
Hi! I'm using scrotwm on a laptop with a monitor connected. Scrotwm detects the dual head setup, but acts funny regarding the screens. First of all when scrotwm starts, it starts on 1:1 and 2:2 screens on the two displays respectively. Maybe this is intentional, but I think the default is 1:1 and

Re: crontab "last day of the month"

2010-04-06 Thread Martin Schröder
2010/4/6 frantisek holop : > my goal is to have log files that end at a certain period. syslog-ng is in ports. Best Martin

Re: crontab "last day of the month"

2010-04-06 Thread Bret S. Lambert
On Tue, Apr 06, 2010 at 02:24:27PM +0200, frantisek holop wrote: > hmm, on Tue, Apr 06, 2010 at 12:20:03PM +0200, Bret S. Lambert said that > > Not to be a dick, but what does one second buy you, really? > > it's not really about that second. > actually, i dont mind losing some 5 minutes even > fr

Re: how to install OpenBSD in a computer with Linux and Grub2

2010-04-06 Thread Lars Nooden
On Tue, 6 Apr 2010, Salvador Fandino wrote: The procedure I have described shows how to *install* OpenBSD booting from a RAM disk (bsd.rd) placed in a Linux partition. Basically it removes the need to create a booting floppy or to burn a CD in order to install OpenBSD. It documents how to do i

Re: PF: antispoof vs URPF

2010-04-06 Thread N. Arley Dealey
Many thanks to all who have replied. For my needs (which are pretty simple), Occam dictates using antispoof. But I've learned much about URPF from the discussion. It's been very interesting.

Re: crontab "last day of the month"

2010-04-06 Thread Paul de Weerd
On Tue, Apr 06, 2010 at 02:24:27PM +0200, frantisek holop wrote: | my goal is to have log files that end at a certain period. | | e.g. an archived log file of march that doesn't contain | april entries (from the "future"), although it's all right | if it contains a couple of stray entries from feb

Re: crontab "last day of the month"

2010-04-06 Thread Robert Bronsdon
On Tue, 06 Apr 2010 13:24:27 +0100, frantisek holop wrote: e.g. an archived log file of march that doesn't contain april entries (from the "future"), although it's all right if it contains a couple of stray entries from february (the casualties of log rotation). Then depending on what is cr

Re: how to install OpenBSD in a computer with Linux and Grub2

2010-04-06 Thread Salvador Fandino
On 04/06/2010 01:40 PM, Vivien MOREAU wrote: Tuesday 06 Apr 2010 ` 13:27:33 (+0200), Salvador Fandino a icrit : AFAIK, this procedure is not documented in any place [...] That is a different thing, the procedure

Re: crontab "last day of the month"

2010-04-06 Thread frantisek holop
hmm, on Tue, Apr 06, 2010 at 12:20:03PM +0200, Bret S. Lambert said that > Not to be a dick, but what does one second buy you, really? it's not really about that second. actually, i dont mind losing some 5 minutes even from the "current" month. my goal is to have log files that end at a certain

Re: crontab "last day of the month"

2010-04-06 Thread Jan Stary
On Apr 06 12:09:01, frantisek holop wrote: > hmm, on Tue, Apr 06, 2010 at 11:26:28AM +0200, Jan Stary said that > > On Apr 06 11:15:26, frantisek holop wrote: > > > hi there, > > > > > > what happens if i specify a cronjob like this? > > > > > > 23 59 31 * * $HOME/bin/whatever > > > > Cron will

Re: crontab "last day of the month"

2010-04-06 Thread Artur Grabowski
On Tue, Apr 6, 2010 at 12:09 PM, frantisek holop wrote: >> > i am looking for an alternative @monthly, not >> > >> > 0 0 1 * * >> > >> > but the last minutes of the last day of the month. >> >> Why? > > because for me the month ends at 23:59:59 on the last day > of month n, and not at 00:00:00 on

Re: OpenBSD 4.6, powerpc, KDE, Gnome, XFCE play nicely?

2010-04-06 Thread Jure Pečar
On Sun, 4 Apr 2010 11:45:11 -0600 Ludwig Mises wrote: > Gnome looks really great, but after a few seconds becomes unresponsive > to key clicks or keyboard typing. Only way out is ctrl-alt-backspace. > > XFCE also starts up fine, but after a few second also becomes > unresponsive much like gnome

Re: how to install OpenBSD in a computer with Linux and Grub2

2010-04-06 Thread Aaron Lewis
On 04/06/2010 07:27 PM, Salvador Fandino wrote: > AFAIK, this procedure is not documented in any place and it is quite > handy in order to install OpenBSD on boxes that already have a recent > Linux inside and use grub2 as the boot manager: > > 0) do any preparatory work needed: backup your data,

Re: how to install OpenBSD in a computer with Linux and Grub2

2010-04-06 Thread Vivien MOREAU
Tuesday 06 Apr 2010 ` 13:27:33 (+0200), Salvador Fandino a icrit : > AFAIK, this procedure is not documented in any place [...] :-) -- Vivien MOREAU

how to install OpenBSD in a computer with Linux and Grub2

2010-04-06 Thread Salvador Fandino
AFAIK, this procedure is not documented in any place and it is quite handy in order to install OpenBSD on boxes that already have a recent Linux inside and use grub2 as the boot manager: 0) do any preparatory work needed: backup your data, resize your partitions, create a new one for OpenBSD,

Re: crontab "last day of the month"

2010-04-06 Thread Otto Moerbeek
On Tue, Apr 06, 2010 at 12:09:01PM +0200, frantisek holop wrote: > hmm, on Tue, Apr 06, 2010 at 11:26:28AM +0200, Jan Stary said that > > On Apr 06 11:15:26, frantisek holop wrote: > > > hi there, > > > > > > what happens if i specify a cronjob like this? > > > > > > 23 59 31 * * $HOME/bin/whate

Re: crontab "last day of the month"

2010-04-06 Thread Paul de Weerd
On Tue, Apr 06, 2010 at 12:09:01PM +0200, frantisek holop wrote: | > Cron will just do what it's told: run whatever at "31.*. 23:59" | | so i could basically do 12 lines with the correct | last day of the month rules :] 12 ? Months come in 12 different lengths where you live ? You have bigger iss

Re: crontab "last day of the month"

2010-04-06 Thread Alexander Hall
frantisek holop wrote: > hmm, on Tue, Apr 06, 2010 at 11:26:28AM +0200, Jan Stary said that >> On Apr 06 11:15:26, frantisek holop wrote: >>> hi there, >>> >>> what happens if i specify a cronjob like this? >>> >>> 23 59 31 * * $HOME/bin/whatever >> Cron will just do what it's told: run whatever at

Re: crontab "last day of the month"

2010-04-06 Thread Bret S. Lambert
On Tue, Apr 06, 2010 at 12:09:01PM +0200, frantisek holop wrote: > hmm, on Tue, Apr 06, 2010 at 11:26:28AM +0200, Jan Stary said that > > On Apr 06 11:15:26, frantisek holop wrote: > > > hi there, > > > > > > what happens if i specify a cronjob like this? > > > > > > 23 59 31 * * $HOME/bin/whatev

Aprenda inglês comodamente a partir de sua casa!

2010-04-06 Thread BBC ENGLISH
a melhor instituigco mundial de ensino Aprenda ingljs a partir de sua casa com o curso NEW BBC ENGLISHMultimedia System mitodo desenvolvido pela 60 milhues de alunos em 17 pamses 77 anos de experijncia 87% de eficacia nos exames da Universidade de Cambridge Aproveite ascondigues especia

Re: crontab "last day of the month"

2010-04-06 Thread frantisek holop
hmm, on Tue, Apr 06, 2010 at 11:26:28AM +0200, Jan Stary said that > On Apr 06 11:15:26, frantisek holop wrote: > > hi there, > > > > what happens if i specify a cronjob like this? > > > > 23 59 31 * * $HOME/bin/whatever > > Cron will just do what it's told: run whatever at "31.*. 23:59" so i c

Re: turning off console cursor

2010-04-06 Thread LEVAI Daniel
On Sun, Apr 04, 2010 at 11:33:55AM +0100, Nicholas Marriott wrote: > Use TERM=xterm (on 4.7) or TERM=xterm-xfree86 (before 4.7) instead. > > xterm-color does not have the civis entry, so programs will not know how > to turn the cursor off. Thanks! It is working. Dani > On Sun, Apr 04, 2010 at

Re: cat1/sh.0: formatting problem

2010-04-06 Thread Kristaps Dzonsons
ok, here's something that doesn't look right (hmm, I should probably file a bug?) you don;t need to open bug reports for this stuff - just let us know. in this case it looks like the Pf macro is misbehaving. i've mailed kristaps and ingo to let them know. Hi Claus -- good catch! The `Pf' mac

Re: crontab "last day of the month"

2010-04-06 Thread Markus Hennecke
Am 06.04.2010 11:15, schrieb frantisek holop: hi there, what happens if i specify a cronjob like this? 23 59 31 * * $HOME/bin/whatever does cron handle months that dont have 31 days? i am looking for an alternative @monthly, not 0 0 1 * * but the last minutes of the last day of the month.

Re: crontab "last day of the month"

2010-04-06 Thread Jan Stary
On Apr 06 11:15:26, frantisek holop wrote: > hi there, > > what happens if i specify a cronjob like this? > > 23 59 31 * * $HOME/bin/whatever Cron will just do what it's told: run whatever at "31.*. 23:59" > does cron handle months that dont have 31 days? > i am looking for an alternative @mont

crontab "last day of the month"

2010-04-06 Thread frantisek holop
hi there, what happens if i specify a cronjob like this? 23 59 31 * * $HOME/bin/whatever does cron handle months that dont have 31 days? i am looking for an alternative @monthly, not 0 0 1 * * but the last minutes of the last day of the month. -f -- i have an exceptionally high q.i.

Re: softraid rebuild hangs at 99%

2010-04-06 Thread Sergey Bronnikov
propably bioctl hang is a consequense of hardware errors on sd1: > sd1 at scsibus2 targ 2 lun 0: SCSI3 > 0/direct fixed > sd1: 70136MB, 512 bytes/sec, 143638992 sec total > sd1(mpi1:2:0): Check Condition (error 0x70) on opcode 0x28 > SENSE KEY: Media Error > INFO: 0x274a (VALID flag

Re: OpenBSD 4.6, powerpc, KDE, Gnome, XFCE play nicely?

2010-04-06 Thread Ludwig Mises
On Mon, Apr 5, 2010 at 6:24 AM, Jacob Meuser wrote: > > well thank you for greatly narrowing down the problem. can you play > other OGG files with artsplay? Apparently not. I started artsd with debug options and when I try to play with artsplay I just get static noise. Here is artsd output (no