Posts Tagged ‘command line’
Have you ever started writing a one-liner and half way in realized it was a bit more complex than you first thought?
If your shell is bash, next time that happens try ctrl-x ctrl-e.
It will take your current line and stuff it into the your default editor (export EDITOR=vim).
I hadn’t seen this tool before so I figured I would share. Swaks is the swiss army knife SMTP according to the homepage.
I’ve covered testing email from the command line before but this tool sure makes it easier.
swaks --to nick@tld --from nick@tld *** MX Routing not available: requires Net::DNS. Using localhost as mail server === Trying localhost:25... === Connected to localhost. <- 220 cmdln-laptop ESMTP Exim 4.69 Thu, 16 Apr 2009 12:23:24 -0500 -> EHLO cmdln-laptop <- 250-cmdln-laptop Hello localhost [127.0.0.1] <- 250-SIZE 52428800 <- 250-PIPELINING <- 250 HELP -> MAIL FROM:<nick@tld> <- 250 OK -> RCPT TO:<nick@tld> <- 250 Accepted -> DATA <- 354 Enter message, ending with "." on a line by itself -> Date: Thu, 16 Apr 2009 12:23:24 -0500 -> To: nick@tld -> From: nick@tld -> Subject: test Thu, 16 Apr 2009 12:23:24 -0500 -> X-Mailer: swaks v20061116.0 jetmore.org/john/code/#swaks -> -> This is a test mailing -> -> . <- 250 OK id=1LuVJ6-0007ge-Jf -> QUIT <- 221 cmdln-laptop closing connection === Connection closed with remote host.
As I have said before life at the terminal is a joy. I constantly struggle with keeping myself organized. I actually work pretty well keeping most things in my head. But one of these days I’m going to fall down and hit my head and forget everything. So try and try again to keep myself organized and documented do I. I was recently pointed to TicGit its a ticketing system that is meant to integrate right into your repository. Well I’m not a developer but I can see the benefit for a terminal todo list and general ticketing for myself as well as my little script repository that is actually maintained in git. Well ok maybe maintained is a bit strong of a word. Anyway on to the good stuff. (more…)
Being able to send email manually seems to be a bit of a lost art. It is extremely handy to know how to use telnet to send email for testing procmail filters, and any other part of your mail system. It can also be fun to spoof email to a friend or co-worker. Read on for a quick run down. (more…)
This is more or less going to be an addendum to my last post as well as an update to my previous screenrc post. About 5 minutes after posting I realized that my additions to my prompt broke some new additions to new screenrc settings.
(more…)

Identica
Twitter
LinkedIn