now there's an idea
Jan. 14th, 2004 03:11 pmThe redoubtable Dave Zuckerman writes:
I'm not a huge blog fan. Every once in a while, just to be contrarian, I think about doing periodic .plan updates, just so I can tell people who ask if I blog that they'll have to finger me to find out! Bwahahahah!
Now i'm tempted to figure a way to stick my latest LJ entry into my .plan.
no subject
Date: 2004-01-14 03:59 pm (UTC)I find I tend to log into machines and use w(1).
no subject
Date: 2004-01-14 04:07 pm (UTC)no subject
Date: 2004-01-14 05:13 pm (UTC)No problemo!
Date: 2004-01-14 06:37 pm (UTC)HTH! HAND! SEND ME A DOLLAR!
Re: No problemo!
From:Re: No problemo!
From:Re: No problemo!
From:Re: No problemo!
From:Re: No problemo!
From:Re: No problemo!
From:While you americans sleep ...
From:munch, munch
From:Re: No problemo!
From:Re: No problemo!
From:Re: No problemo!
From:Re: No problemo!
From:Re: No problemo!
From:no subject
Date: 2004-01-14 11:52 pm (UTC)no subject
Date: 2004-01-15 07:01 am (UTC)---
import xmlrpclib,string,ftplib,os
ljUserName = "put your lj name here"
ljPassword = "put your lj password here"
tempFileName = "MyPlan"
fingerHost = "put the ip or hostname of the ftp site where you want to put your plan"
fingerUserName = "put the account name of the ftp account on the finger site"
fingerPassword = "put the password of the ftp account on the finger site"
fingerFile = ".plan"
server = xmlrpclib.ServerProxy(uri="http://www.livejournal.com/interface/xmlrpc",verbose=False)
result = {}
plan = ""
result = server.LJ.XMLRPC.getevents({"username": ljUserName,"password": ljPassword,"selecttype":"one","itemid":"-1"})
plan = string.join(
[ result['events'][0]['eventtime'],
result['events'][0]['subject'],
"",
result['events'][0]['event']],
"\n")
temp = file(tempFileName,"w+a")
temp.write(plan)
temp.close()
storeCommand = "STOR " + fingerFile
temp = file(tempFileName)
ftpClient = ftplib.FTP(fingerHost, fingerUserName, fingerPassword)
ftpClient.storlines(storeCommand,temp)
ftpClient.quit()
temp.close()
os.remove(tempFileName)
---
Simple no?
no subject
Date: 2004-01-15 07:06 am (UTC)http://home.earthlink.net/~eviltofu/ljfinger.py
(no subject)
From: