Category Archives: linux command line

Linuxfest 2013, mass mail …

lugm-logo-smallToday while I had to send out emails to attendees of Linuxfest 2013, I sat down thinking of a way to mass-mail. The emails should display the name of attendees so that they may notify me if it’s mistyped. Sendmail and a bunch of command line utils could do the trick.

What do I need in my arsenal?

mailx, a Linux command line utility for sending and receiving mail.

paste which is among the lesser-known Linux command line utilities. It joins files horizontally by outputting lines sequentially next to each other.

I earlier kept the names and email addresses in a CSV file, which makes it easier to be read by utilities. I was wondering if I could use awk to get the job done without using paste, but my creativity was at low (possibly due to lack of caffeine). So, I only used awk to send names & email addresses in two separate files.

awk -F"," '{print $1}' linuxfest2013.csv > names.list
awk -F"," '{print $2}' linuxfest2013.csv > emails.list

Now, I had my two files containing names & emails, which could be vertically aligned next to each other. I put the message to be sent in a file named message.txt. Finally, I trigger the mass mail as follows :

paste emails.list names.list | while read email name; do echo `cat message.txt` | mail -s "Linuxfest 2013 | `echo $name`" -r my_email `echo $email`; done

Oh! Beauty of command line <3

LUGM mini-meetup … Epic!

While rushing to the bus-stop I missed the Port-Louis bus. That’s how I got late for today’s LUGM mini-meetup. Well, I reached Bagatelle at 13h25. Pawan & Nitin Mutkawoa called me earlier informing they had reached. I saw Nitin sitting opposite to Talking Drums & we went to Mugg & Bean. I called Pawan and told him we’re on the upper floor. It was our lucky day since the table near the power socket was free :) I also called Nirvan since he pinged me earlier after his university class but he was in P. Louis by then.

We ordered some mocha javas and I took a cheese & tomato sandwich. Pawan brought his Acer netbook for a Linux Mint installation. I got a Live pendrive ready and we installed all while having some general chit-chat. Topic then came about blogging and Nitin told us about the issues he was having with his Apache config. He logged on his VPS and I guided him through the WordPress installation.


Photo, courtesy of Yuram
Edited in GIMP :)

Yuram arrived with a power extender which I asked for earlier on facebook. Conversation was full fledged by that time. Jochen joined us through facebook ( yup, I know I should have set up the G+ hangout session :P ). He pointed out several security loopholes in Nitin’s website & the PHP configuration. To see the fun check out Pawan’s status on facebook.

At some point Nitin asked about Binutils & Coreutils. We briefly talked about those. Nitin & Yuram then shared some LPIC preparation tips. I was on the other hand teaching Pawan some basic Linux commands. It was the first time he had hands on a Linux terminal and he was enjoying playing around. In fact, he was so mesmerized with the ease of getting things done through command-line that he installed a shell emulator on his Sony Xperia phone. Everything else was working on his netbook except the WIFI. He has a Broadcomm BCM4312 network adaptor. We needed a wired connection to install the firmware. I gave Pawan the instructions from a previous blog post. He applied the same at home & confirmed me his WIFI is fine now.

Since the beginning of LUGM mini-meetups I told Yuram to get on IRC when needing help. Today I showed them how to connect to IRC servers and join a channel. We connected to the openSUSE channel on freenode and had a quick chat among ourselves. I then helped him signing up to the openSUSE mailing lists.

We had a lot of sporadic topics but we concentrated in helping Pawan getting comfortable with Linux. At the same time we could see Nitin’s head on fire with Jochen’s comments bombarding him on facebook. That was fun & we let him handle those alone :)


Nitin was too busy solving Jochen's puzzles

We finished at 17h00. Everyone smiling & saying that was an epic meetup!