On Mon, 2007-08-13 at 00:25 -0700, Alan wrote:
On Mon, Aug 13, 2007 at 02:43:04PM +0800, Ow Mun Heng wrote:
Been struggling with a new script I'm porting over from bash because
perl's DBI is much more elegant than my previous usage of sqsh.
I'm having trouble converting from a datetime
On Mon, Aug 13, 2007 at 02:43:04PM +0800, Ow Mun Heng wrote:
Been struggling with a new script I'm porting over from bash because
perl's DBI is much more elegant than my previous usage of sqsh.
I'm having trouble converting from a datetime into a unix epoch
timestamp.
under bash
Been struggling with a new script I'm porting over from bash because
perl's DBI is much more elegant than my previous usage of sqsh.
I'm having trouble converting from a datetime into a unix epoch
timestamp.
under bash, this is done.
date = -MM-DD HH:MM:SS
epoch_date = date -d $date +%s
Ow Mun Heng wrote:
Been struggling with a new script I'm porting over from bash because
perl's DBI is much more elegant than my previous usage of sqsh.
I'm having trouble converting from a datetime into a unix epoch
timestamp.
under bash, this is done.
date = -MM-DD HH:MM:SS
epoch_date
-extra/tumbler-0.1.25 pulled in by:
@selected requires xfce-extra/tumbler
xfce-extra/xfce4-datetime-plugin-0.6.2 pulled in by:
@selected requires xfce-extra/xfce4-datetime-plugin
They are not selected for removal, they are just listed.
--
Joseph
-pthread -E
-I/usr/include/postgresql/server
-I/usr/lib/python2.3/site-packages/mx/DateTime/mxDateTime conftest.c
conftest.c:10:24: mxDateTime.h: No such file or directory
configure:3019: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME psycopg
| #define
/DateTime-TimeZone-0.98 [ebuild])
(dependency required by www-apps/bugzilla-3.4.1-r1 [ebuild])
(dependency required by bugzilla [argument])
I don't see anything in man emerge that would help me track down the
missing dependency. Is there any easy way to do this or do I have to
track it down
.
(dependency required by perl-core/Module-Build-0.35 [ebuild])
(dependency required by dev-perl/DateTime-TimeZone-0.98 [ebuild])
(dependency required by www-apps/bugzilla-3.4.1-r1 [ebuild])
(dependency required by bugzilla [argument])
I don't see anything in man emerge that would help me track
drivers.
---
#!/usr/bin/env python3
import sys, os, struct
from datetime import datetime
from pprint import pprint
def main():
for line in open(sys.argv[1], 'r'):
date = ' '.join(line.strip().split()[3:6])
dt = datetime.strptime(date, '%b %d %Y')
pprint(dt)
ts
a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
KeyError: Specific key requires an operator (dev-perl/DateTime-0.2901) (try
adding
required by perl-core/Module-Build-0.35 [ebuild])
(dependency required by dev-perl/DateTime-TimeZone-0.98 [ebuild])
(dependency required by www-apps/bugzilla-3.4.1-r1 [ebuild])
(dependency required by bugzilla [argument])
I don't see anything in man emerge that would help me track down
one < input_file
I would consider using a human date string parsing library in another language,
such as Python’s datetime where you can specify the formats, loop to check for
any and if nothing matches output a blank line.
Andrew
(mykey,use_cache=use_cache))
File /usr/lib/portage/pym/portage.py, line
4134, in match_from_list
raise KeyError, Specific key requires an operator
(%s) (try adding an '=') % (mydep)
KeyError: Specific key requires an operator
(dev-perl/DateTime-0.2901) (try adding an '=')
What do I do to fix
match_from_list(mydep,self.cp_list(mykey,use_cache=use_cache))
File /usr/lib/portage/pym/portage.py, line 4134, in match_from_list
raise KeyError, Specific key requires an operator (%s) (try adding an
'=') % (mydep)
KeyError: Specific key requires an operator (dev-perl/DateTime-0.2901) (try
-extra/xfce4-mount
xfce-extra/xfce4-dict
xfce-extra/xfce4-taskmanager
xfce-extra/xfce4-screenshooter
xfce-extra/xfce4-quicklauncher
xfce-extra/xfce4-xkb
xfce-extra/xfce4-datetime
xfce-extra/xfce4-notes
xfce-extra/xfce4-fsguard
xfce-extra/xfce4-systemload
xfce-extra/xfce4-netload
xfce-extra/xfce4
Hello Bernard and Co :)
Are you using dual boot with another OS ?
In that case, maybe you're using your other OS every 15 boots
and maybe it has a wrong datetime and sets it to the hardware
at every shutdown. Thus while you are rebooting on your Gentoo
the hardware clock is wrong.
Check your
!
emerge: there are no ebuilds to satisfy ~dev-lang/perl-5.10.1.
(dependency required by perl-core/Module-Build-0.35 [ebuild])
(dependency required by dev-perl/DateTime-TimeZone-0.98 [ebuild])
(dependency required by www-apps/bugzilla-3.4.1-r1 [ebuild])
(dependency required by bugzilla [argument
a perl script called zenus (specific to my ISP) and
/etc/portage/sets/zenus-deps contains
dev-perl/SOAP-Lite
perl-gcpan/SOAP-DateTime
dev-perl/Class-Inspector
dev-perl/Data-Dumper-Concise
Those packages may or may not be needed by anything else, but a set means
I keep them installed without
not run sundays.
Can someone please explain me what I'm doing wrong?
You are combining fields 3 and 5, those two work funny.
Unlike the other datetime specs, they are not ANDed, they are ORed.
Taking the first one, you obviously want the cron to run at 3 am
between the 2nd and 31st of the month
gt; uri("mongodb://user:pw@hostname:27017/syslog?authSource=admin=true")
> collection("messages")
> value-pairs(
> scope("selected-macros" "nv-pairs")
> pair("DATE", datetime("$UNIXTIME"))
>
scope("selected-macros" "nv-pairs")
pair("DATE", datetime("$UNIXTIME"))
pair("PID", int64("$PID"))
pair("SEQNUM", int64("$SEQNUM"))
exclude("HOST*")
exclude("LEGACY*&quo
/gpdf-2.10.0-r2
[ebuild R ] xfce-extra/xfce4-datetime-0.3.1-r1
[ebuild R ] gnome-base/gdm-2.8.0.3
[nomerge ] net-analyzer/nessus-2.2.6
[nomerge ] net-analyzer/nessus-plugins-2.2.6
[ebuild R ] net-analyzer/nessus-core-2.2.6
[ebuild R ] media-gfx/eog-2.10.2
[ebuild R
dependencies... done!
emerge: there are no ebuilds to satisfy ~dev-lang/perl-5.10.1.
(dependency required by perl-core/Module-Build-0.35 [ebuild])
(dependency required by dev-perl/DateTime-TimeZone-0.98 [ebuild])
(dependency required by www-apps/bugzilla-3.4.1-r1 [ebuild])
(dependency
, and the 1st line (inc) should not run sundays.
Can someone please explain me what I'm doing wrong?
You are combining fields 3 and 5, those two work funny.
Unlike the other datetime specs, they are not ANDed, they are ORed.
Taking the first one, you obviously want the cron to run at 3
script, but more reliable and written in Python.
import datetime
import os
import sys
import time
import portage
LOGDIR = '/var/log/emptytree'
PKGLIST = LOGDIR + '/packages'
FAILED = LOGDIR + '/failed'
EMERGE_FLAGS = '--oneshot --nodeps'
TCOLS = 80
def get_list_of_packages(args=None):
Get
deps. Hard mask that crap next time.
4. Add the needed packages in portage.keywords and make it pretty and
organized.
# bugzilla and deps for bugzilla-3.4.1-r1, added 20090919
www-apps/bugzilla
dev-perl/Daemon-Generic
dev-perl/DateTime-TimeZone
dev-perl/Data-ObjectDriver
dev-perl/File-Flock
dev
datetime specs, they are not ANDed, they are ORed.
Taking the first one, you obviously want the cron to run at 3 am
between the 2nd and 31st of the month AND if the day is Mon-Sat.
What it is doing is running at 3am every day between the 2nd and
31st and also every day Mon-Sat (even
): Panel for the Xfce
desktop environment
[I] xfce-base/xfce4-session (4.10.0{tbz2}@05/22/12): A session manager
for the Xfce desktop environment
[I] xfce-base/xfce4-settings (4.10.0{tbz2}@05/22/12): Configuration
system for the Xfce desktop environment
[I] xfce-extra/xfce4-datetime-plugin (0.6.1
USE={-test}
[nomerge ] dev-perl/DateTime-1.030.0 USE={-test}
[nomerge ] dev-perl/Params-Validate-1.70.0-r1 USE={-test}
[ebuild U ]virtual/perl-Attribute-Handlers-0.960.0 [0.940.0-r1] 0 KiB
[nomerge ] mail-filter/spamassassin-3.3.2-r5 USE=berkdb ipv6 ssl -doc
-datetime-plugin-0.6.2 (sys-devel/gettext)
xfce-extra/xfce4-netspeed-plugin-0.3 (sys-devel/gettext)
xfce-extra/xfce4-xkb-plugin-0.5.6 (sys-devel/gettext)
In my case, firefox does *not* show up, despite me using nls
(neither does adobe-flash, in case you're using that).
In my case, the Firefox
Dear Gentoo Users, Developers!
I would like to share my little program that does header file generation
from GNU C file.
See attached file.
Sincerely xbx.
#!/usr/bin/env python
import os
import sys
import re
import shutil
import datetime
class ConfigMain(object):
def __init__(self
-extra/xfce4-timer-0.6.1
Sun Jan 4 07:41:39 2009 xfce-extra/xfce4-mailwatch-1.1.0
Sun Jan 4 07:42:49 2009 xfce-extra/xfce4-mount-0.5.5
Sun Jan 4 07:44:12 2009 xfce-extra/xfce4-datetime-0.6.1
Sun Jan 4 07:45:18 2009 xfce-extra/xfce4-fsguard-0.4.2
Sun Jan 4 07:46:24 2009 xfce-extra/xfce4-clipman
Dear Gentoo Users, Developers!
I would like to share my little program.
Help in compiling programs.
See attached python files.
sincerely xbx.
simplebuild.build
Description: Binary data
#!/usr/bin/env python
import os
import sys
import subprocess
import datetime
import shutil
class
33 matches
Mail list logo