![Google Google](http://a.fsdn.com/sd/topics/google_64.png)
![Linux Linux](http://a.fsdn.com/sd/topics/linux_64.png)
![Technology Technology](http://a.fsdn.com/sd/topics/technology_64.png)
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."
sudo (Score:5, Funny)
sudo google Skylab -activate -w -terminate "Humans"
Re:sudo (Score:5, Funny)
Re:sudo REWIND (Score:3, Informative)
sudo google SkyNet -activate -w -terminate -prejudice:extreme "Humans" && sudo google -reboot | grep "reality"
Re: (Score:3, Funny)
GNU is a Linux convention... or something (Score:2)
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.)
Re:sudo (Score:4, Funny)
Me either, but this thing is burning up my village as we spe
Re: (Score:3, Interesting)
I'm unclear as to how a defunct and destroyed cut-rate '70's era NASA space station that was built out of Atlas rocket parts would have either a web server or the ability to annihilate humanity.
Well, it did rain debris all over Australia. So it's really just a question of accuracy.
Re:sudo (Score:5, Funny)
Well, it did rain debris all over Australia. So it's really just a question of accuracy.
Pfft, Australia. Like that's a REAL place. Everyone knows that was just a made-up place for those Crocodile Dundee movies. And then the Simpsons did a great take on it. It was a great joke back in the day, but you guys need to let it go already.
Re: (Score:3, Insightful)
cut-rate '70's era NASA space station
Make a joke, fine, make a point, even better, but you should be old enough to remember SkyLab kicked ass, you insensitive clod!
Re: (Score:2)
Every goddamned program out there is capable of annihilating humanity and no matter who designed it, the error is inevitably going to be blamed on you until you fix it.
Re: (Score:2, Funny)
Every goddamned program out there is capable of annihilating humanity and no matter who designed it, the error is inevitably going to be blamed on you until you fix it.
by whom?
Re: (Score:2)
cut-rate '70's era NASA space station that was built out of Atlas rocket part
Not disagreeing with you but skylab was the best US space station. Look at how long it took to get the ISS working properly. Of course skylab had the advantage of pre-dating the shuttle.
Re: (Score:2)
You dont have to know how a gun works in order to be killed by one.
And if that isnt yet a quote by some smart person, then I claim it.
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: (Score:2)
google roullette is now complete (Score:4, Interesting)
sudo $(googlecl imfeelinglucky malicious commands)
Re: (Score:2)
Oh ... that is fucking amazing.
Re: (Score:3, Funny)
i type this in my console an it formmated my hard drive u dick
Re: (Score:2)
I'm sorry Dave, I can't do that.
The Lesser Controlled (Score:3, Interesting)
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.
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: (Score:3, Funny)
Well you already seem to be using Google Translate to put your posts into english.
You have it backwards (Score:2)
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" decentra
yes, but... (Score:3, Insightful)
...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.
Re: (Score:2, Insightful)
...does it run anything besides linux?
Is there something people want to run besides Linux?
Re: (Score:2)
Re: (Score:2, Funny)
Re: (Score:2)
> Is there something people want to run besides Linux?
Yeah, Macs. All Mac applications can run shell scripts, and Python is included with every Mac, so a Photoshop-to-Picassa workflow would be very easy to create using Google CL. Or BBEdit-to-Blogger.
Re: (Score:2, Insightful)
...does it run anything besides linux?
Is there something people want to run besides Linux?
And is anyone unable to run Linux?
No, seriously. Install VirtualBox [virtualbox.org] on your Windows system or whatever, throw Xubuntu [xubuntu.org] on a virtual machine, do whatever you want. The software doesn't cost a dime, you can do it with the hardware you have, and it's not even that difficult for a person of moderate geekiness. Okay, so it takes a lot of hard drive space, but gone are the days when you need to go drop a few hundred dollars on another computer or futz around with dual-booting and accidentally trash your MBR if you
Re:yes, but... (Score:5, Insightful)
Well apparently it's just a python script, so it is available for Windows. Though the last time I tried to use python from the CLI (what little there is) in Windows was a really big hassle, and I ended up just going for an unofficial prepackaged installer for that particular application which bundled Cygwin.
Re:yes, but... (Score:5, Insightful)
there's a good CLI for Windows: http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx [microsoft.com]
Re:yes, but... (Score:5, Insightful)
You said good. Lack of bash = not good.
Re: (Score:2)
> You said good. Lack of bash = not good.
Gee, it's so easy to tell people who never used zsh :)
Re: (Score:2, Troll)
It took Microsoft 16 years to rip off bash
and they still didn't manage to do that properly.
Re:yes, but... (Score:4, Insightful)
Yeah, but Powershell is to shells like Esperanto is to languages.
Re: (Score:2)
Oh, a car analogy. I get it!
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: (Score:3, Insightful)
Re: (Score:2)
you probably mean cygwin...
Re: (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
Re: (Score:3, Interesting)
The Python installer for windows is rather painless, launch setup.exe and it's done.
Plus though the cmd.exe console is rather minimalistic a few Python scripts would offer you a minimum of the command line expressiveness.
At my workplace we are stuck by microsoft lock-in, I bless the possibility I've had to develop a bunch of Python scripts over the years for to ease the burden of having to work in a windows environment.
Re: (Score:2)
Python? So it has extra requirements, then, requiring a fairly common but far from standard interpreter with a memory footprint precluding its use on many embedded devices? (This thing could be useful to put on a NAS, but those tend to have a total of 128 or 256 MB RAM.)
If the programmers can't do it in sh and C, they don't care about the software enough to deserve having it installed. Ah well, at least it wasn't Java. :-P
Re: (Score:2)
Re: (Score:2)
Bit of a shit result against Serbia, nicht war?
Re: (Score:3, Funny)
I don't get it - what is this supposed to mean?
Re: (Score:2)
It doesn't show. Well not much [schule.at].
(Second row down, third from the left, since you're obviously a bit slow on the uptake).
Re: (Score:2)
Yes, but the question is who would actually want to use them?
Re:yes, but... (Score:5, Informative)
http://code.google.com/p/googlecl/wiki/SystemRequirements [google.com]
Cool, but... (Score:2, Funny)
....someone ought to write a GUI front end for it.
Re:Cool, but... (Score:5, Funny)
....someone ought to write a GUI front end for it.
Make it web based at that.
Nerd RAGE! (Score:4, Funny)
A single tool to do EVERYTHING?
It's like they don't even USE linux.
Re:namespacing (Score:5, Insightful)
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.
Re: (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: (Score:2)
How about:
for C in $GOOGLE_COMMANDS; do alias $C="google $C" ; done
Put in a script that is executed by all users.
Re: (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 script
Re: (Score:2)
> you're basically complaining about seeing a space where you pointlessly want a hyphen.
A lesson painfully learned by git.
Re: (Score:2, Informative)
Re: (Score:2)
Also graphicsmagick and surfraw, at least (although the last can simulate it with soft links).
Search (Score:3, Interesting)
Too bad it doesn't support Google Search.
Re: (Score:2)
Too bad it doesn't support Google Search.
While a Google-produced tool might do something nice as far as the format of the data, there's already a command line program for Google search called wget.
Re: (Score:2)
You'll never see Google support extraction of search data from a non-web interface. The reason is because once you have the data, it's all too easy to strip out the sponsored links that provide Google its revenue.
A shame, too, because a lot of good uses would come from third parties being able to CRUD Google search results. Of course, underground, everyone and their mother uses regular expressions and HTML parsers to grab Google results anyway, but it'll never be officially supported (and I don't count th
Re: (Score:2)
Like it's not already easy to strip out the sponsored links from the HTML.
Re: (Score:2)
Sure, but if they find out you're accessing Google with a bot, they'll ban you.
Also works on Mac, Windows (Score:2)
http://code.google.com/p/googlecl/wiki/SystemRequirements [google.com]
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:Not just for Linux (Score:5, Funny)
Except for actual, living pythons. To be fair, though, they are less a platform and more a series of tubes.
Re: (Score:3)
Every platform except the closed ones that don't allow you to run an interpreter, of course.
Re: (Score:2)
Its rare that someone will say something that makes Windows fall in the "open" category.
Re: (Score:2, Insightful)
So, basically it runs on everything except the ZX81 [wikipedia.org] and the iPhone
Re: (Score:2)
He meant "every [PC] platform", obviously. No, you can't run this on a game console or an iPod or a GPS.
Re: (Score:2)
you can run it on my game console, my GPS, my DVB-S2 tuner and my phone! I don't have an iPod, but if I wanted one, it would be one that could run it as well....
Re: (Score:2, Insightful)
Works really well (Score:2, Funny)
Name clash! (Score:3, Interesting)
Re: (Score:2)
So some random person made a command with the name of an extremely famous company and you think it's the company's fault for picking that name for the command?
Re: (Score:2)
Forgive me if I expect Google's engineers to do a quick google search before picking a name that's already been taken for a few years.
Re: (Score:2)
I'd frankly rather that Google® crush the waste of disk space and net traffic that comprise that crappy cutrate shmup.
Re: (Score:2)
Re: (Score:2)
Yah, I used to have an alias which would clash, as well.
To be fair, they kind of have a claim to the name, though.
Just alias your google binary to gg. apt-file search tells me it's still free :)
Re: (Score:2)
Re: (Score:2)
Um, they saved a majority of command line users a few days or hours, and the minority that couldn't do this themselves now can. Anything else you're wondering about?
Re:okay (Score:5, Interesting)
Re: (Score:2)
I've found documentation coming out of Google to be somewhat weak. The docs for GWT, for example, are lacking in some areas - they don't even have complete Javadoc coverage AFAIK.
And using Google to look for GWT information isn't always useful, as it returns a lot of pages that no longer apply to the latest version of GWT. I also get lots of results for old Java documentation - look up anything in the Java libraries, and the results from Sun will probably be for Java 1.5 or 1.4.2 or even earlier, not Java
Re: (Score:2)
I've found documentation coming out of Google to be somewhat weak. The docs for GWT, for example, are lacking in some areas - they don't even have complete Javadoc coverage AFAIK.
And using Google to look for GWT information isn't always useful, as it returns a lot of pages that no longer apply to the latest version of GWT. I also get lots of results for old Java documentation - look up anything in the Java libraries, and the results from Sun will probably be for Java 1.5 or 1.4.2 or even earlier, not Java 1.6.
That's because the Java 5 and maybe even the Java 1.4.2 docs are referenced more often than the more recent releases. Deployed more often, too, so it often makes sense to refer to the Java 5 docs since that's gonna be the runtime environment, anyway. I rarely get anything older than the J2SE5.0 docs, though -- I used to google for "java 5 keyword" to get the correct docs, but these days they are the default top result. Googling for "java 6 keyword" or java 7 keyword" reliably returns those API docs, so the
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: (Score:2, Insightful)
Err I was concerned they wouldn't work when Google switched to the full on new version. I need a beer.
I wrote a Google CLI tool once (Score:5, Funny)
(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.
Nifty, but... (Score:5, Interesting)
... it'd be equally cool if they had a really open API and you could just use a script with curl to upload.
Re: (Score:2)
They do, the gdata APIs, which is what I believe this tool is based off of.
An overview all the different APIs is here:
http://code.google.com/more/ [google.com]
Sadly, no Google Voice support, but.. (Score:2, Interesting)
Don't see anything for Voice in there, but thankfully there's already http://code.google.com/p/pygooglevoice/ [google.com]
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.
upload to picasa from command line (Score:2, Interesting)
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 [eu.org]
I personally like this one best:
http://code.google.com/p/upload2picasa/ [google.com]
Re: (Score:2)
Turn IMAPS/POPS and SMTPS on. There's hundreds of CLI utilities for it...
Re: (Score:2)
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.
Re: (Score:2)
lynx -dump parses the HTML. It would be like going to a web page with a browser and then select all, copy, paste. curl will give you HTML source.
Re: (Score:2)
Oh, OK. Sorry then.
Re: (Score:3, Informative)
I'm not sure but there's GMailfs [sr71.net], a FUSE filesystem that uses GMail's IMAP interface.
That _was_ cool... (Score:2)
...but now Google Docs store arbitrary files, and Google Storage has a very Amazon S3-like API.
Re: (Score:2)