I am looking at different options of triggering linux command on NATed box that has internet access.
I know that I could use combination of IMAP box in DMZ, send email to that box and then use como of fetchmail and procmail to trigger script.Can I do something similiar with twitter?e.g. send twitter message from mobile and have some check running on linux box that triggers script.Security is a separate issue, I am just interested in functionality right now.
It is possible to periodically run a script which grabs your (or a specific) twitter feed and parses for commands. The script could then run particular commands based on the contents of the feed.
There are PERL and python modules you could use to parse the twitter feed or various command line twitter clients which should also work.
The PERL Net::Twitter module could be used to do this. There are examples of how to use it in the link. There are plenty of examples around the web. A command line program like TTYtter could also be configured and then called from your script to get the output of your Twitter feed.
hth
Ok, I used ttytter in script mode with some perl around it.Seems to do the trick.
This script is helpful too https://github.com/jalada/twitter-to-omnifocus