Blogger
Code: Select all
# google blogger post --title "foo" "command line posting"
Code: Select all
# google calendar add "Lunch with Jim at noon tomorrow"
Code: Select all
# google contacts list name,email > contacts.csv
Code: Select all
# google docs edit --title "Shopping list"
Code: Select all
# google picasa create --title "Cat Photos" ~/photos/cats/*.jpg
Code: Select all
# google youtube post --category Education killer_robots.avi
The only dependency is python2.6 or Python2.5
The script below will install setuptools for python (if not already installed, if you have python2.5 just edit the script, row 4 to "...-py2.5.egg" and row 9 to "....org/packages/2.5/s/setuptools...") that comes very handy to install a lot of python packages with ease, than use setuptools' easy_install to install googlecl.
Code: Select all
#!/bin/bash
#change to `py2.5` according to your python version
setuptools="setuptools-0.6c11-py2.6.egg"
#check if easy_install already available
if [ -z `which easy_instrall` ]; then
#download setuptools
wget -c -P "/tmp" "http://pypi.python.org/packages/2.6/s/setuptools/${setuptools}#md5=bfa92100bd772d5a213eedd356d64086"
#set executable
chmod a+x "/tmp/${setuptools}"
#install setuptools
"/tmp/${setuptools}"
fi
#install googlecl and deps using setuptools' easy_install
[ "$?" -eq 0 ] && easy_install googlecl
if you get a Timestamp error using googlecl just run Puppy Psync once, it worked for me instead of the solution suggested by googlecl FAQ.