Google Introduces Command-Line Tool For Linux 210
Lomegor writes "'Ever wanted to upload a folder full of photos to Picasa from a command prompt?' Google introduced today a new project, Google CL, that lets you do that and much more. It's a new command line tool for Linux that acts as an interface with Google services; you can upload videos to YouTube or maybe post a new blog post in Blogger in just one line."
Not just for Linux (Score:3, Informative)
It's written in Python and will run on any platform that Python will run on. That's pretty much every platform.
Re:yes, but... (Score:5, Informative)
http://code.google.com/p/googlecl/wiki/SystemRequirements [google.com]
Re:sudo REWIND (Score:3, Informative)
sudo google SkyNet -activate -w -terminate -prejudice:extreme "Humans" && sudo google -reboot | grep "reality"
Thank you! (Score:5, Informative)
Google updated Google Docs recently and I found that the new version didn't support some of the Gadgets that the old version did. I became quite concerned that the old and hackalicious python scripts I was using to upload CSV files that power my website's crime dashboards [lazylightning.org]--something which would suck to have to recode.
I'm going to have to check this out and see if it works much in the same way like allowing me to just replace a Google Docs spreadsheet that already exists something which I require to keep my old code working.
Nice to see that they are continuing to make their commandline tools easier to use as I have to admit I was having some problems getting the ones I currently use to work but now that they are I certainly don't want to loose that functionality (I am good at using those scripts, just not coding new ones so any of the troll comments which say I should do it myself are not necessary, thanks :))
Re:namespacing (Score:2, Informative)
Re:namespacing (Score:3, Informative)
Protip:
for C in $GOOGLE_COMMANDS; do echo "google $C $*" > "/usr/local/bin/google-$C"; chmod +x "/usr/local/bin/google-$C" done
It’s not an appliance UI, but a real OS. Meant to help you automate things and fit like a glove. Use it!
Re:The Lesser Controlled (Score:4, Informative)
What loss of control with Google services? If you want to store your stuff somewhere else it's usually fairly easy to do [dataliberation.org].
Re:sudo (Score:5, Informative)
Atlas? I thought they used a Saturn V that was supposed to be for another Moon mission for it - which made much easier to put it on the Saturn V that put into orbit.
Actually it was a modified S-IVB stage [wikipedia.org] -- the third stage used in the launches of the Apollo moon missions. On Apollo, the S-IVB was used for the insertion of the command and lunar modules into earth orbit, and for their trans-lunar injection.
Re:yes, but... (Score:3, Informative)
install python from http://www.activestate.com/activepython/downloads [activestate.com]
download gdata from http://code.google.com/p/gdata-python-client/downloads/detail?name=gdata-2.0.10.zip&can=2&q= [google.com]
download googlecl from http://code.google.com/p/googlecl/downloads/detail?name=googlecl-0.9.5.tar.gz&can=2&q= [google.com]
unpack gdata and googlecl into their own dirs (I used 7zip)
in gdata and then googlecl dirs run python setup.py install
googlecl will be in c:\python26\scripts
the rest is left as an exercise to the reader but wrapping it in a cmd script is trivial
Re:yes, but... (Score:4, Informative)
You've just invalidated your own point. I'm normally a sarcastic bastard when people do this but I've just had breakfast so I'll go easy on you.
I do use PS and BASH on a daily basis, I am a Linux and Exch 2007 sysadmin so I need to have an understanding of Powershell and BASH (PS is required for Exch 07). PS is trying to be a CLI for a GUI only environment the same as BASH is a CLI for a CLI environment. Both are meant to handle sysamin task and enable scripting. PS is trying to be BASH by centralising all admin and conf tasks, but PS fails because between different programs the syntax and commands are inconsistent and it's overly convoluted. Further more, PS is useless for MS SQL, realistically I only use PS to call SQLCMD.
Also on Server2008, PS is not installed by default. This is a major screw up if you're really trying to introduce a CLI.
I'm currently in the Philippines, breakfast here has a high chance of bricking in my digestive system.
Re:can you... (Score:3, Informative)
I'm not sure but there's GMailfs [sr71.net], a FUSE filesystem that uses GMail's IMAP interface.
Re:namespacing (Score:3, Informative)
Not sure what problem that's meant to solve, but the more standard (and IMHO, manageable) approach to using a shell script that's called by different names would be to use a construct like the following:
Link scriptname to foo, bar and baz, and Bob's yer uncle. And if relying on bash, no aliases or functions to clutter up bash's cluttered namespace. Then again, the above is probably similar to what Google's Python script does, so I'm not really sure WTF either of us are talking about. ;-)
A note to the OP: before commenting on how Real Unixy Tools work, have a look at the manpage for openssl(1).
Awesome tools (Score:2, Informative)
Linux isn't UNIX. It's not even an OS. (Score:5, Informative)
"Google Introduces Command-Line Tool For Linux"
is about as relevant as saying
"Google Introduces Command-Line Tool For Blue Computers" because blue is your favorite color. Sure, it'll run on blue computers, but it wasn't MADE FOR blue computers. Nor were these tools MADE FOR Linux. They'd have to be written as kernel modules to be made for Linux.
Anyhow, Linux isn't even an OS - it's a kernel. Just try to run Linux sometime without GNU and let me know how that works out for you.
Sure, so-called "tech journalists" think that every UNIX thing in the world is really a Linux thing, and sure, no "tech journalist" will ever properly call the OS GNU/Linux, but Slashdot? You people have to be a better example for everyone else.
Re:Search (Score:1, Informative)
This was intentional. Google used to have a web service allowing you to programatically call the search API, but they got rid of it years ago. They don't want you bypassing their ads.
Re:Works for Android or iPhone? (Score:2, Informative)
You are correct, I untarred the source on my Nokia N900, built and installed and it works fine.
Dunno about the other phones, but if they have a CLI, python interpreter & can use puthon-gdata then you should be good.