[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] Setting time
Andrew Arensburger:
> On Wed, 2 Jan 2002, Helge Oldach wrote:
> > The script fails because there are no handlers defined for creator
> > "psys" and type "sprf".
> >
> > I don't see how I can call something similar to
> >
> > &Palm::PDB::RegisterPDBHandlers("Palm::PDB",
> > [ "psys", "sprf" ],
> > );
>
> The easiest way is just to
>
> use Palm::Raw;
>
> which registers itself as a handler for any and all databases unless
> there's something better.
That's what I would have thought (and tried, actually), but it doesn't
help either...
See what happens with "type: psys/sprf;":
Running sync conduits for "Saved Preferences".
Trying conduit [generic]...
This conduit matches. Running "[generic]"
This is a default conduit. Remembering for later.
Trying conduit /home/hmo/palm/SetSysDateTime.pl...
This conduit matches. Running "/home/hmo/palm/SetSysDateTime.pl"
Looking for built-in conduit "/home/hmo/palm/SetSysDateTime.pl"
spawn_conduit: tochild fd == 7
spawn_conduit: fromchild fd == 8
Conduit PID == 17221
Inside mkpdbname("/home/hmo/.palm/backup","Saved Preferences")
mkpdbname: -> "/home/hmo/.palm/backup/Saved Preferences.prc"
>>> Daemon: coldsync
>>> Version: 2.1.3
>>> InputDB: /home/hmo/.palm/backup/Saved Preferences.prc
>>> OutputDB: /home/hmo/.palm/backup/Saved Preferences.prc
>>> SPCPipe: 4
No handler defined for creator "psys", type "sprf"
Child has printed to stdout.
cond_readline: About to select()
cond_readline: select() returned 1
cond_readstatus: <<< "501 No handler defined for creator "psys", type "sprf""
run_conduit: got status 501
This is the script:
#!/usr/bin/perl
use strict;
use ColdSync;
use ColdSync::SPC;
use Palm::Raw;
StartConduit("sync");
@_ = localtime(time);
$_[5] += 1900; # year correction
++$_[4]; # month 0..11 -> 1..12
&dlp_SetSysDateTime(reverse @_[0..5]) && die "501 Cannot SetSysDateTime";
EndConduit();
Besides, ColdSync is still Load()ing and Write()ing the database which
is entirely pointless in this particular case.
Any ideas?
Thanks,
Helge
This message was sent through the coldsync-hackers mailing list. To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body. For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.