Forums

Discuss all things Remember The Milk.

Create tasks from the command line

jose.rojas says:
I am linux user and love the command line because let me do things in a quicker way, so less time wasted in repetitive tasks is more chance to increase the productivity..

So, after several tryouts, i can post tasks directly to RTM from the linux console (works in Mac too)

The trick: Using twitter, we can posts tasks to RTM sending direct messages to @RTM user..(and after configure your twitter with RTM --> http://www.rememberthemilk.com/services/twitter/)

Here is the script

#!/bin/sh

# RTM
# Script to post tasks directly in Rememberthemilk.com
# Developed by Jose R. Rojas - jrojas (at) gmail (dot) com
# http://www.joserojas.org/

# Change this values for your twitter's user
login=your-user
passwd=your-password

# Showing messages in screen
echo "Starting RTM"
echo "Adding the task.. Please wait.."

# we use curl to simulate the user action in a browser
curl -s --basic --user $login:$passwd --data-ascii "status=`echo d rtm $@|tr ' ' '+'`" "http://twitter.com/statuses/update.json" > /dev/null

# More messages :p
echo "It's done.. Next: Start to Getting your Things Done :)"

Put in a file, name it "rtm", put the file in your local executable directory, give it execution permissions (chmod +x rtm) and it's done..

USAGE:
rtm "Post more tips and tricks in RTM Forum"

Best regards!
Posted at 12:11pm on April 7, 2009
(closed account) says:
nice!
Posted 9 years ago
Log in to post a reply.