?

Log in

No account? Create an account
Automated Crossposting - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Automated Crossposting [Dec. 5th, 2003|02:10 am]
LiveJournal Client Discussions

lj_clients

[lordindra]
Is there any way to simultaneously post to multiple journals, or is the only way to auto-crosspost to loop through a list of journals and send a postevent for each one consecutively? That could take a while, but if its the only way, its the only way.
linkReply

Comments:
[User Picture]From: adrieljohnson
2003-12-05 08:42 am (UTC)
You can check out the community at multijournal
(Reply) (Parent) (Thread)
[User Picture]From: lordindra
2003-12-05 08:57 am (UTC)
Hmm... I'm mainly asking because I'm writing a client, looking for more efficient ways to crosspost than looping through a list of journals.
(Reply) (Parent) (Thread)
[User Picture]From: adrieljohnson
2003-12-05 09:03 am (UTC)
I've though about it and tested it the only way is too loop through.
(Reply) (Parent) (Thread)
[User Picture]From: lordindra
2003-12-05 09:35 am (UTC)
Hmm. Oh well, Perl's foreach loop is pretty good for that.

Got to get my laptop fixed or set this machine up to dual boot so I can test under linux, the client is to a useful level, before I make the beta release I want to make sure it actually works on Linux(which it should, Perl/Tk with no platform specific code).

Perhaps firing off multiple threads, each making their own postevent? Wouldn't work well for my client, as multithreading can very quickly kill portability, but it might be a technique that would work.
(Reply) (Parent) (Thread)
[User Picture]From: adrieljohnson
2003-12-05 09:57 am (UTC)
I tried multithreading and it killed perl and wasn't too reliable. Plus everything is being read from a database.
(Reply) (Parent) (Thread)