Sunday, December 4, 2011

Controlling Your Linux Server Using Twitter

Last weekend I wrote about "Using Twitter To Monitor Your Linux Server" using a command line client "MYST". I have added a new feature to MYST using which you can tell your server to execute commands by using DMs. Let us start configuration for the same.

Step 1: Ensure that you can send direct messages to your server's twitter account. Just follow the server's account and your server's account also needs to follow you.

Step 2: Add the following in your .myst.conf file below MYST section:

auth_users: adityapatawari 

You can add more twitter handles separated by blank space. 

Step 3: Now you can DM any command to your server's account and it'll be executed. You need to ensure that script's "getdm" option is in cron.

MYST uses python's os.system to execute these commands. The user's access level who executed will decide if the commands coming from DM will be executed or not. If you want everything to be executed then run with super user or using sudo.

Please contribute to the MYST project on


  1. i executed /home/foo/myst/ get dm

    and only shows the DM, it doesnt execute the command.

  2. You added your twitter handle to ~/.myst.conf?

  3. hehe, I did this with IRC using python (:


Note: Only a member of this blog may post a comment.