Google Introduces Command-Line Tool For Linux
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."
sudo google Skylab -activate -w -terminate "Humans"
I think this is an interesting juxtaposition. I lessly the fonder of Google services because too often it seems things are centralised with the various Google Services. What I liked about Linux was it's decentralisation, that control was distributed to whomever had the capacity and the will to partake.
I don't suggest it's worthless that I can give content to Google from the command line, but that it seems to ideologically oppose one of the strengths of Linux. And artistic content is one area that is suffering from centralisation. Artistic content builds upon what came before it (I mention that because we're not all Lessig-educated), and copyright is increasingly centralising content to a small number of firms. Giving your content to Google isn't like giving your content to Disney, but it's submitting it to the control of a lessly interested party.
...does it run anything besides linux?
a tool like this would rule for any platform.
i guess you could just roll your own python script or something.
THL phish sticks
....someone ought to write a GUI front end for it.
A single tool to do EVERYTHING?
It's like they don't even USE linux.
Mod me down with all of your hatred and your journey towards the dark side will be complete!
Too bad it doesn't support Google Search.
There's no -1 for "I don't get it."
It's written in Python and will run on any platform that Python will run on. That's pretty much every platform.
organized into separate modules, but called as "google subcommand" so that you can still have a command called "picassa" and "blogger" and "search"... sounds good to me.
"do one thing, do it well" doesn't mean "make a thousand poorly-named tools and clutter /usr/bin"
"google foo" does one thing, does it well.
"google bar" does one thing, does it well.
"google" does one thing, does it well (passes commands to a dispatcher)
you're basically complaining about seeing a space where you pointlessly want a hyphen.
-- 'The' Lord and Master Bitman On High, Master Of All
sudo google SkyNet -activate -w -terminate -prejudice:extreme "Humans" && sudo google -reboot | grep "reality"
Python: 'And then suddenly you have a language which says "we're all stuck with whatever the whiniest coder wants".'
For anyone that spends a lot of time on the command line, this is pretty huge.
sudo $(googlecl imfeelinglucky malicious commands)
There's already a "google" command line command bundled with surfraw. You can type google searchstring and it will launch a browser with the results. I use w3m as the browser, which makes it easy to pipe the results into a script if I need to.
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--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 :))
You need to look into bash-completion. Tab-completion works for command line params too. Fairly well, anyway.
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!
Any sufficiently advanced intelligence is indistinguishable from stupidity.
(Crap, hit 'submit' instead of 'preview') :-) I eventually just filtered him.
I used to be on a list and this one guy would always post the worst questions--the kind of stuff where you could google the subject line of his email and get the answer. So I wrote...
#!/bin/bash
lynx -dump google.com/search?q=$1+$2+$3+$4+$5 | mail -s "Automated response" list@example.com
What I really wanted was for the list admin to put a filter on the server that would automatically take his messages and do that to them. Of course I never actually used it.
Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
If you're not familiar with google's api it's a pretty large time investment. Partially because of the size, but also because they're often not the most up to date. A lot of the doc api for example doesn't work with docs created under the system that's been up for a few months now. But that fact isn't listed anywhere in their documentation, or even very easy to find by searching because the error message is so generic and uninformative.
Everything will be taken away from you.
I'm unclear as to how a defunct and destroyed cut-rate '70's era British Armed Forces Comms satellite that never made it out of geostationary orbit would have either a web server or the ability to annihilate humanity.
... it'd be equally cool if they had a really open API and you could just use a script with curl to upload.
Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
Don't see anything for Voice in there, but thankfully there's already http://code.google.com/p/pygooglevoice/
I'm not sure but there's GMailfs, a FUSE filesystem that uses GMail's IMAP interface.
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).
Just tried the GoogleCL on my Fedora 12 and it works without any issue, personally (its only me) I like the googlecl. For folks want to try it on there Fedora box here is the link to my blog http://askaralikhan.blogspot.com/2010/06/googlecl.html
http://askaralikhan.blogspot.com/
"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.
Such tools existed for years, thanks to Google's open API. I wrote one of the first example scripts and the idea was then used in many other tools:
http://wanted.eu.org/en/computers/linux/uploading_photos_to_picasaweb
I personally like this one best:
http://code.google.com/p/upload2picasa/
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.