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."
http://code.google.com/p/googlecl/wiki/SystemRequirements
www.goosh.org
it needs gmail support
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.
But if they were separate hyphenated commands then they'd tab complete! /laziness
so i didnt RTFA but i cant help wondering if this headline is just better written as "google writes linux script!"
generally you see people working in a command line, because they have some insight or minimal inclination to program things
of this nature. one has to wonder what google has achieved here if the majority of command line users in a few hours or days
could just as easily have crafted the same thing.
Good people go to bed earlier.
Dear Lord Biteme,
I believe grasshoppa is the teacher this evening. The lesson? A brand new word: whoosh !!
Best Wishes, Your Pal,
Capt. Obvious
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.
Some guy used to always post the worst questions to a list I was on. Like, the kind of stuff where you could google the subject line of his email and get the answer. So I wrote...#!/bin/sh
lynx -dump google.com/search?q=$1+$2+$3+$4+$5 | mail -s "Automated response" list@example.comWhat I really wanted was for the list admin to put a filter on the server that would automatically take his messages and do that.
Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
I must saying being a big linux user this is a really cool tool. I like the way it kind of gives me that putty ssh feeling. lol :)
http://www.thetechnologygeek.org
(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.
Although I wish "google calendar list" returned dates and times instead of just titles and urls.
Sounds like Busybox...
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's not that we can't. We would rather just not be bothered.
GUIs for all of their niceties tend to take a O(c) problem and turn them into a O(n) problem.
If I wanted to spend all day pushing pretty buttons, I would have acquired an OS with them.
A Pirate and a Puritan look the same on a balance sheet.
How about:
for C in $GOOGLE_COMMANDS; do alias $C="google $C" ; done
Put in a script that is executed by all users.
The real "Libtards" are the Libertarians!
It wants me to log in. It tells me
The site anonymous is requesting access to your Google Account for the product(s) listed below.
What is the security implication to granting access to "site anonymous?"
Somehow it seems right to post this as AC. ;)
... 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/
backup files to gmail?
You're still doing it wrong... Linux conventions dictate that whole word options be preceded with a double hyphen:
sudo google SkyNet --activate -w --terminate --prejudice:extreme "Humans" -vvvvvvvvvvvvv && sudo google --reboot | grep "reality"
Also, I want to see it happening so we're going with a highly verbose output. :)
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).
Linux conventions dictate that whole word options be preceded with a double hyphen
Isn't that a GNU convention?
Linus Torvalds used exactly the same scheme for git. Geez, it's like he didn't even WRITE linux.
But if they were separate hyphenated commands then they'd tab complete! /laziness
git cherry-<TAB>
That turns up git cherry-pick, at least with my install of zsh on Linux and OS X. And if I just do git cher<TAB>, I even get descriptions of both the cherry and cherry-pick commands.
So it'll just be a matter of time before this gets integrated with most distros' packages of most shells, I say.
Demanding constant attention will only lead to attention.
...but now Google Docs store arbitrary files, and Google Storage has a very Amazon S3-like API.
Don't thank God, thank a doctor!
A note to the OP: before commenting on how Real Unixy Tools work, have a look at the manpage for openssl(1).
Indeed. Or BusyBox. Or GraphicsMagick. Or cvs and svn... etc...
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/
> you're basically complaining about seeing a space where you pointlessly want a hyphen.
A lesson painfully learned by git.
Reminds me of how some C++ programmers just have to be able to write foo.func() rather than func(foo), even in cases when the latter approach yields more flexibility. I've heard them described aptly: syntax fetishists. Sounds like the same issue someone has with "google foo" over "google-foo".
"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.
Linux conventions dictate that whole word options be preceded with a double hyphen
Isn't that a GNU convention?
FSF should rename it "GIOL Is Often Linux" so we don't need the slash between the parts anymore. (OK, that sounds trollish, but it's barely dawn on a weekend, so it's as good as I get right now.)
You are making it sound like Linux/UNIX encourages decentralization. Quite the opposite. Even the earliest UNIX OSed has support for NFS and it was in wide use.
In fact the whole UNIX OS is designed around the idea of having large numbers of people share one centralized environment, via terminal sessions.
Even XWindows is architected this way, implicit remote support built in.
Only in the past decade as Linux migrated to be a more single-desktop envinroment a-la windows. This is far from "encouraging" decentralization.
So much for that.
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/
It's a bummer that they still don't allow PDFs to be uploaded. I use Google Docs to store stuff that I used to "print for my records." Having command line interface to upload PDFs would be one step closer to a virtual printer that would just store in Google Docs as PDF. Now that I think if it, they're probably just holding it off while they prepare new interfaces for Google Cloud Print.
I love spending all day pushing pretty buttons. I find buttons are almost always more intuitive and quick.
But I also love CLIs. I use them almost exclusively in scripts. A good CLI can skip most of the need for a custom SDK which is compatible with every programming language. Just about every scripting language and application under the sun that offers customization allows shell commands to be run.
Cygwin bash is awesome. With a few symbolic links, you can say c: goodbye.
Yes, yes, don’t you think I know that?
I just wanted to keep it short, considering how I was strongly drunk and just came back from a party. ^^
Any sufficiently advanced intelligence is indistinguishable from stupidity.
Well, depends on if you want your shell’s space and login time to be even more bloated as it is.
But considering how what the OP wanted already smells of bloat, I guess it does not matter anyway which version you choose. It’s always pretty pointless. ;)
Any sufficiently advanced intelligence is indistinguishable from stupidity.
I'm sure it compiles trivially for Maemo/Meego, but what about webOS, Android or iPhone OS?