Re: mktime() output not the same as the date utility

2008-10-14 Thread Mark B.
On Tue, Oct 14, 2008 at 1:50 PM, Jeremy Chadwick <[EMAIL PROTECTED]> wrote: > On Tue, Oct 14, 2008 at 12:43:54PM -0400, Mark B. wrote: >> I can't figure out from the man pages why >> mktime() is giving a different result than date -f. >> Both strptime and mktime

mktime() output not the same as the date utility

2008-10-14 Thread Mark B.
Hi, I can't figure out from the man pages why mktime() is giving a different result than date -f. Both strptime and mktime are supposed to use the local timezone, as does date. The output of date is correct; mktime() is an hour later. What am I missing here? Thanks, m $ uname -s; uname -r Fre

Re: How to delete non-ASCII chars in file

2008-09-05 Thread Mark B.
On Fri, Sep 5, 2008 at 1:38 PM, Giorgos Keramidas <[EMAIL PROTECTED]> wrote: > Does this look ok? Looks good to me. m ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any ma

Re: How to delete non-ASCII chars in file

2008-09-05 Thread Mark B.
On Fri, Sep 5, 2008 at 12:27 PM, Mark B. <[EMAIL PROTECTED]> wrote: > A follow question--is it possible to use that statement in a Makefile (BSD)? > A straight cut 'n paste didn't work, and I couldn't figure out the escaping to > make it work. Neve

Re: How to delete non-ASCII chars in file

2008-09-05 Thread Mark B.
On Fri, Sep 5, 2008 at 10:58 AM, Giorgos Keramidas <[EMAIL PROTECTED]> wrote: > $ echo '^Fhello^F' | sed -e 's/[^[:print:]]*//' | hd > 68 65 6c 6c 6f 06 0a |hello..| > 0007 > $ Thanks. > The matching pattern is wrong. You need `[^[:print:]]'. The char

How to delete non-ASCII chars in file

2008-09-05 Thread Mark B.
I have a text file that includes some non-ASCII characters For example, opening the file in vi shows lines like this: 'easth_0.541716776378' 0 \xe2\x80\x98dire' 2 Is there a command-line tool I can use to delete these characters? I tried: cat f | tr -cd [:print:] but this rem

Re: multi-platform dump and restore?

2008-07-02 Thread Mark B.
On Wed, Jul 2, 2008 at 12:21 PM, Wojciech Puchar <[EMAIL PROTECTED]> wrote: >> If I dump on amd64 should I be able to >> extract files from the dump on i386? > > i'm almost sure yes but please check > I did and it does. >> >> If so, should it be possible to restore a >> FreeBSD amd64 dump on Open

multi-platform dump and restore?

2008-07-02 Thread Mark B.
If I dump on amd64 should I be able to extract files from the dump on i386? If so, should it be possible to restore a FreeBSD amd64 dump on OpenBSD i386? Note there is ticket that may be related: bin/67723: restore(8) FreeBSD 5.x restore cannot handle other platforms/Linux(extfs)

df: negative "Used" and "Capacity" -- file system corruption?

2008-06-18 Thread Mark B.
Hi, FreeBSD 7, AMD64. $ df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/da0s1d2.9G-67M2.7G-2%/var/www $ mount /dev/da0s1d on /var/www (ufs, local, soft-updates) $ I found an email thread from 2006 where Suleiman Souhlal says the culprit was a stale cylind

make world error

2003-10-06 Thread mark . b
On a make world on a 4.8 box, this is the error msg ===> gnu/usr.bin/cc/cccp cc -O -pipe -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr/obj/usr/src/i386/usr\" -I/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cccp/../cc_tools - I/usr/src/gnu/usr.bin/cc/cccp/../cc_tools - I/usr/src/gnu/usr.bin/cc/cccp/../

Re: burncd on 4.7 + YAMAHA CRW2200E (again)

2002-11-15 Thread mark . b
Just a stab in the dark, When I got my first cd burner, it would not burn but would read cd's fine, the problem was the burner had to use the "master plug" on the IDE cable. On 15 Nov 2002 at 17:49, Jacques Beigbeder wrote: Date sent: Fri, 15 Nov 2002 17:49:30 +0100 From:

upsd - aps smartups 700 error

2002-10-23 Thread mark . b
I loaded upsd on a 4.5 box for a APS Smartups 700 and started getting this msg in /var/log/messages and security output. > Oct 22 16:30:46 chillhd upsd[110]: apc_tune: negative response:NO > Oct 22 16:40:46 chillhd upsd[110]: apc_tune: negative response:NO > Oct 22 16:50:46 chillhd upsd[1

/kernel write failed system full

2002-07-22 Thread Mark B
OK I know I did something wrong, but with little chance to correct the system, with error messages spewing out at a blinding rate, I hit the reset button then fsck the disks on boot, then edit the fstab to block off all but the basic fs needed to run. I see first error was a /kernel msg complai

/kernel write failed system full

2002-07-22 Thread Mark B
OK I know I did something wrong, but with little chance to correct the system, with error messages spewing out at a blinding rate, I hit the reset button then fsck the disks on boot, then edit the fstab to block off all but the basic fs needed to run. I see first error was a /kernel msg complai