GORT – The day the earth DID NOT stand still

If you are a Sci-fi fan then you are probably familiar with the lovable Gort from “The Day the Earth Stood Still.”  Well, this post has nothing to do with that Gort. Instead, it has to do with this Gort, a command line tool for RobotOps.

I have been trying to work with CylonJS and various pieces of hardware lately, and I ran across the GORT software on their Arduino page.  It seemed pretty cool, a simple download and unzip and you are ready to rock some device scanning from the command line.  I would say that this tool is pretty useful, and easy to use.  Here are a couple of things I have used it for, as well as a tip.

Install – you download their package and unzip.  Then you have this gort directory sitting wherever it was unzipped to.  I recommend, for Mac, that you copy that folder to /usr/local, then set up your .bashrc or .bash-profile to have a path to it, something like this:

export PATH=/usr/local/bin:/usr/local/gort_0.2.2_darwin_amd64:$PATH

Now you will be able to run the gort command anywhere in your system, which is useful.

The two main things I use it for are to scan for ports ( gort scan serial ) and to upload firmata to an Arduino without using the Aruino IDE.

That’s all I have for you on this topic, so go ahead and check out the site mentioned above and hang with Gort.

Kill Node.js!

UPDATE: (4-24-2014) added additional ways to do this based on feedback from the community on twitter! Thanks guys!

Nope! Not what you think, or maybe hoping to find.  Remember, I am an accused “Nodejs Fanboy.”

Ever get stuck with the dreaded:

Error: listen EADDRINUSE

It can put a damper on your day, but never fear.  That error just means that another instance of that particular Node.js program is running, and you need to kill it to start it up again.  When ctrl-c doesn’t work (Mac or Linux) then you need to get all “greppy.” (Yes, greppy is a real serious technical term).

Hit the command line and type this:

ps aux | grep node

Then check for the process ID and type:

kill -9 <the process id you want to kill>

Hope you find this usefull, and remember, most of these posts are for me to remember what it was I did that “one time.”

Additional ways to do this:

A shout out to some awesome folks in the community who tweeted me alternative ways to kill Nodejs.  Thanks folks!

From: @ahmetalpbalkan   Run this command>  killall node

From: @tjanczuk   Run this command>  kill -9 $(pgrep node)