Command Line

Send Email from the Command Line using Gmail Account

Sometimes you want to send a quick/short E-mail to somebody, send a TODO item to yourself, or let a script/program Email you when it’s done. For these I found the Linux mail command very useful.

Using it is as easy as typing:

mail -s “Subject” receipt@domain.com

Then enter the message and end it with [ctrl]+[D].

However, if your ISP s!#$% like mine, you’ll discover that no mail was really sent.

To work around this, I wanted to configure my mail program to use Gmail’s SMTP server.

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: , , ,

Saturday, March 21st, 2009 Command Line 4 Comments

A Bash Script To Decode TinyURLs

This is a simple bash script, intended to decode tinyurl URLs, i.e. to revret a tinyurl into the original URL.

It’s always a good practice checking where a URL will send you to before actually visiting it.

For the implementation, I the “Preview” service supplied by tinyurl themselves.

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: , , ,

Sunday, February 22nd, 2009 Command Line No Comments

A Bash Script To Watch Live TV Streams

Hi,

In this post I’ll introduce a very simple and basic Bash script, which uses VLC and a plain text file to let you watch Live TV streams of your favorite channels.

First of all, make sure you have VLC installed in your system.

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: , , , ,

Monday, February 9th, 2009 Command Line 3 Comments

Query Google Finance From the Command Line

This is a one line bash script I wrote to query a stock’s price from Google Finance. It uses wget to get the HTML page from Google Finance and then grep and cut to extract the stock’s price. The script is based on the current HTML format of the Google Finance pages and might not work if Google decide to change this format (It’s easy to modify, though).

To have the script:

Open your favorite text editor (mine is vim), and type/paste this:

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: , ,

Friday, December 26th, 2008 Command Line No Comments

Command Line Tools I Like

Though my love with Linux started because its GUI, especially compiz fusion, I discovered through time that Linux’s power is in its command line, almost every thing can be done from there, easily, clean and fast.

Here is a list of the command line tools I use most of the time:

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: ,

Monday, December 1st, 2008 Command Line 2 Comments

Twitter from the Command Line

This simple but not perfect script will let you twit easily from the command line.

Open a new file with your favorite text editor, and add this:

1
2
3
#!/bin/bash
curl --basic --user USERNAME:PASSWORD \
--data status="$*" http://twitter.com/statuses/update.xml -o /dev/null;

Save the file as twit (or any other name you choose).

Of course, we don’t like our password inside an accessible plain text file. So this is what I did:

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: ,

Saturday, November 22nd, 2008 Command Line 1 Comment
my email
my photo
Hi,
My name is Amir Watad. I have a BSc. in biomedical engineering from The Biomedical Engineering school , Technion , Israel, and a BSc. in electrical engineering from The Electrical Engineering school , Technion , Israel.
I'm a Verification Engineer in Mellanox Technologies Ltd.
I love Linux, the Command Line and the OpenSource Community.
I used to write Poems (Arabic) when I was able to find time for this.
February 2012
S M T W T F S
« Sep    
 1234
567891011
12131415161718
19202122232425
26272829  
SEO Powered by Platinum SEO from Techblissonline

Twitter links powered by Tweet This v1.7.4, a WordPress plugin for Twitter.