Home Blog Page 1373

Understanding Exit Codes and How to Use Them in Bash Scripts

Lately I’ve been working on a lot of automation and monitoring projects, a big part of these projects are taking existing scripts and modifying them to be useful for automation and monitoring tools. One thing I have noticed is sometimes scripts use exit codes and sometimes they don’t. It seems like exit codes are easy for poeple to forget, but they are an incredibly important part of any script. Especially if that script is used for the command line.

What are exit codes?

On Unix and Linux systems, programs can pass a value to their parent process while terminating. This value is referred to as an exit code or exit status. On POSIX systems the standard convention is for the program to pass 0 for successful executions and 1 or higher for failed executions.

 

Read more at bc-log

Camera Pi – How Raspberry Pi Can See

Robots provided with autonomous operation capabilities and, particularly,  those sporting sense organs similar to the human ones, have always tickled the fancy of science fiction writers and screenwriters. As always happens, from a certain point in history, even official science has started to deal with the subject, at first with the so-called “strong thesesâ€, whose […]

Continue Reading

 
Read more at Open Electronics

Google Plans Multiple Android Wear Updates as Apple’s Wearable Looms

Google’s first update to Android Wear is coming this week, and several more will follow it before the end of the year as Google moves to quickly iterate on its new wearable software platform. In an interview with CNET, two leading Android engineers lay out what we should expect to see in some future updates. This first one sounds as though it may not be much — just some navigation and voice control improvements — but a few useful features are coming down the road. That includes Google officially beginning to support custom watch faces from third-party developers: some developers have already figured out how to build them, but Google is working on a toolkit for developers that will allow watch faces to easily be made. Google previously t…

Continue reading…

Read more at The Verge

OpenStack Manila project Approved for Incubation

Internet News: So what is Manilla? It’s an OpenStack File Share service project, sponsored by Red Hat and NetApp.

More importantly, Manila is now an officially incubated project within the OpenStack Foundation. As an incubated project, Manila could one day land as an official integrated project, though don’t look for that until at least 2015.

Read more at Internet News.

Atlantis Computing USX: Software-Defined Storage for VMs

Organizations are seeking ways to reduce their storage costs while also improving performance, reliability and manageability. Atlantis Computing believes that its USX addresses these requirements for virtual applications.

webOS Lives On As LuneOS With New Release

Formerly known as webOS Ports, LuneOS was officially released today for letting the HP TouchPad and select Google Nexus devices re-live what’s best about webOS…

Read more at Phoronix

Splitting a File Elegantly

In a previous Linux Rain article I compared different ways to delete blank lines, and showed that the AWK way was the simplest and most thorough. Here I show how to split a text file into multiple text files using a surprisingly simple AWK command.

Background

In 2013 I published an article in Free Software Magazine about finding changes in a sorted list. The example I used is shown below. It’s a made-up name/address/phone-number file called names, with comma-separated fields.

Read more at TheLinuxRain.

Google’s Sub-$100 ‘Android One’ Devices Said to be Unveiled on September 15

The search-turned-mobile giant is preparing to launch its latest range of smartphones, designed solely for the emerging market. 

    Invites are said to have been sent out to members of the Indian press for September 15.

    That, some are saying, can only mean Android One devices are ready to be unveiled — the high-quality but low-cost smartphones first announced at Google’s I/O conference earlier this year. 

    Distribution Release: Tails 1.1.1

    Version 1.1.1 of Tails, a Debian-based specialist distribution and live CD designed for anonymous web browsing, is out and ready for download: “Tails, The Amnesic Incognito Live System, version 1.1.1, is out. All users must upgrade as soon as possible – this release fixes numerous security issues.”

    Read more at DistroWatch

    Google Accelerates End of SHA-1 Support; Certificate Authorities Nervous

    Google is consciously using their influence to push certificate authorities to advance security standards soon. Would you believe the problem is Windows XP SP2?