[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] websync
On Fri, 2 Jul 2004, Cesar Schneider wrote:
> Basicly I need this:
>
> - I'll write a application to palm that will use a .pdb file
> - This application will store some data that will be send to a web
> server.
> - I need to sincronize using a USB crable conected to a PC that will be
> conected to the web.
> - Once the .pdb files are in the web server, I know what to do if it.
>
> I think that once this syncronization works, I can send/receive a .pdb
> file to/from the server, ok ?
>
> How can I configure coldsync to do this ?
It sounds as if the simplest thing to do is to write a Dump
conduit that copies the .pdb file to the web server, in whichever manner
you prefer. Something like
#!/usr/local/bin/perl
use ColdSync
StartConduit("dump");
# The filename is given by $HEADERS{"InputDB"}.
# Copy it to the web server.
EndConduit;
Copying the file from the local desktop to the web server is left as an
exercise for the reader. Presumably either you have a form to do this, and
can use the various HTTP Perl modules, or you can just `scp' the file to
the web server, where it will be noticed by a cron job, or something.
--
Andrew Arensburger Actually, these _do_ represent the
arensb@ooblick.com opinions of ooblick.com!
Generic Tagline V 6.01
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.