From log-return-355-nelson-lists=crynwr.com@list.cr.yp.to Mon Mar 27 00:10:03 2000 X-VM-v5-Data: ([nil nil nil t nil nil nil nil nil] ["6063" "Mon" "27" "March" "2000" "10:06:03" "+1000" "Peter Samuel" "Peter.Samuel@ind.tansu.com.au" "" "115" "tai64nunix" "^From:" nil nil "3" nil nil nil nil nil] nil) X-VM-Summary-Format: "%n %*%a %-17.17F %-3.3m %2d %4l/%-5c %I\"%s\"\n" X-VM-Labels: nil X-VM-VHeader: ("Resent-" "From:" "Sender:" "To:" "Apparently-To:" "Cc:" "Subject:" "Date:") nil X-VM-Last-Modified: (14562 26706 270047) X-VM-POP-Retrieved: nil X-VM-Bookmark: 4 Return-Path: Delivered-To: nelson-lists@desk.crynwr.com Received: (qmail 20851 invoked by uid 0); 27 Mar 2000 00:10:02 -0000 Received: from ns1.crynwr.com (HELO ns.crynwr.com) (192.203.178.14) by desk.crynwr.com with SMTP; 27 Mar 2000 00:10:02 -0000 Received: (qmail 29806 invoked by uid 500); 27 Mar 2000 00:08:34 -0000 Delivered-To: nelson-lists@crynwr.com Received: (qmail 29802 invoked from network); 27 Mar 2000 00:08:33 -0000 Received: from muncher.math.uic.edu (131.193.178.181) by pdam.crynwr.com with SMTP; 27 Mar 2000 00:08:33 -0000 Received: (qmail 19419 invoked by uid 1002); 27 Mar 2000 00:08:19 -0000 Mailing-List: contact log-help@list.cr.yp.to; run by ezmlm Delivered-To: mailing list log@list.cr.yp.to Received: (qmail 14257 invoked from network); 27 Mar 2000 00:08:19 -0000 Received: from mailo.vtcif.telstra.com.au (202.12.144.17) by muncher.math.uic.edu with SMTP; 27 Mar 2000 00:08:19 -0000 Received: (from uucp@localhost) by mailo.vtcif.telstra.com.au (8.8.2/8.6.9) id KAA23391 for ; Mon, 27 Mar 2000 10:07:19 +1000 (EST) Received: from maili.vtcif.telstra.com.au(202.12.142.17) via SMTP by mailo.vtcif.telstra.com.au, id smtpdsEhCA_; Mon Mar 27 10:06:45 2000 Received: (from uucp@localhost) by maili.vtcif.telstra.com.au (8.8.2/8.6.9) id KAA13340 for ; Mon, 27 Mar 2000 10:06:44 +1000 (EST) Received: from localhost(127.0.0.1), claiming to be "bunyip.tansu.com.au" via SMTP by localhost, id smtpd0RMiEg; Mon Mar 27 10:06:08 2000 Received: (qmail 22604 invoked from network); 27 Mar 2000 00:06:06 -0000 Received: from humpback.ind.tansu.com.au (HELO ind.tansu.com.au) (149.135.128.11) by bunyip.tansu.com.au with SMTP; 27 Mar 2000 00:06:06 -0000 Received: (qmail 20636 invoked from network); 27 Mar 2000 00:06:03 -0000 Received: from grizzly.ind.tansu.com.au (149.135.128.25) by humpback.ind.tansu.com.au with QMQP; 27 Mar 2000 00:06:03 -0000 Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-351212254-954115563=:16362" From: "Peter Samuel" To: log@list.cr.yp.to Subject: tai64nunix Date: Mon, 27 Mar 2000 10:06:03 +1000 (EST) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---559023410-351212254-954115563=:16362 Content-Type: TEXT/PLAIN; charset=US-ASCII The following patch to daemontools-0.70 creates the tai64nunix executable. tai64nunix takes multilog output and converts the tai64 time to unix epoch time: echo hello | multilog t e 2>&1 | tai64nunix 953888914.320443500 hello The code is tai64nlocal.c stripped down. Regards Peter ---------- Peter Samuel peter@eserv.com.au Technical Consultant or at present: eServ. Pty Ltd Peter.Samuel@ind.tansu.com.au Phone: +61 2 9206 3410 Fax: +61 2 9281 1301 "If you kill all your unhappy customers, you'll only have happy ones left" ---559023410-351212254-954115563=:16362 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="tai64nunix.c" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="tai64nunix.c" I2luY2x1ZGUgPHN5cy90eXBlcy5oPg0KI2luY2x1ZGUgImJ1ZmZlci5oIg0K I2luY2x1ZGUgImV4aXQuaC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fdWludDAobnVtLHNlY3Ms OSkpOw0KICAgICAgb3V0KCIuIiwxKTsNCiAgICAgIG91dChudW0sZm10X3Vp bnQwKG51bSxuYW5vc2Vjcyw5KSk7DQogICAgfQ0KICAgIGZvciAoOzspIHsN CiAgICAgIG91dCgmY2gsMSk7DQogICAgICBpZiAoY2ggPT0gJ1xuJykgYnJl YWs7DQogICAgICBnZXQoJmNoKTsNCiAgICB9DQogIH0NCn0NCg== ---559023410-351212254-954115563=:16362 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=tai64nunix-diffs Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=tai64nunix-diffs KioqIEZJTEVTLm9yaWcJTW9uIE1hciAgNiAxNjoyMTowOSAyMDAwDQotLS0g RklMRVMJRnJpIE1hciAyNCAxOTo0NjozNCAyMDAwDQoqKioqKioqKioqKioq KioNCioqKiAxNSwyMCAqKioqDQotLS0gMTUsMjEgLS0tLQ0KICBtdWx0aWxv Zy5jDQogIHRhaTY0bi5jDQogIHRhaTY0bmxvY2FsLmMNCisgdGFpNjRudW5p eC5jDQogIHNvZnRsaW1pdC5jDQogIHNldHVpZGdpZC5jDQogIGVudnVpZGdp ZC5jDQoqKiogTWFrZWZpbGUub3JpZwlNb24gTWFyICA2IDE2OjIxOjA5IDIw MDANCi0tLSBNYWtlZmlsZQlGcmkgTWFyIDI0IDE5OjI2OjU3IDIwMDANCioq KioqKioqKioqKioqKg0KKioqIDMzNiwzNDIgKioqKg0KICANCiAgcHJvZzog XA0KICBzdnNjYW4gc3VwZXJ2aXNlIHN2YyBzdm9rIHN2c3RhdCBmZ2hhY2sg bXVsdGlsb2cgdGFpNjRuIHRhaTY0bmxvY2FsIFwNCiEgc29mdGxpbWl0IHNl dHVpZGdpZCBlbnZ1aWRnaWQgZW52ZGlyIHNldGxvY2sgcnRzIG1hdGNodGVz dA0KICANCiAgcHJvdC5vOiBcDQogIGNvbXBpbGUgcHJvdC5jIGhhc3Noc2dy Lmggc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