Benscomputer.no-ip.org

Creative Commons
License

Please see footer for details of the license applied to this article.



Benscomputer.no-ip.org

Patent Free


Howto use one installation of OAuth tcli for multiple Twitter Users



To allow one instance of tcli (OAuth) to be used for multiple user accounts, open tcli.sh in a text editor and change the line
      
      source .tcli.rc      to       
        source "$TCLICONFIG"    
Pass the path to the appropriate .tcli.rc when calling the program;
        
    TCLICONFIG="/home/ben/OAuthprog1/USER1CONFIG/.tcli.rc" ./tcli.rc -c statuses -s "tcli.sh rocks!"    

Note: Remember to cd into the directory containing the Twitter Module. If for some reason you can not/would prefer not to do this every time. You can use a similar method to define the path to the programs;
Locate the line;
        source TwitterOAuth.sh    
and change to
    source "$OAUTH_PATH"/TwitterOAuth.sh    
Then open TwitterOAuth.sh and locate the line
        source OAuth.sh    
and change to
        source "$OAUTH_PATH"/OAuth.sh    
Then when calling tcli.sh simply pass the variable OAUTH_PATH;
        OAUTH_PATH="/path/to/OAuth" TCLICONFIG="/home/ben/OAuthprog1/USER1CONFIG/.tcli.rc" ./tcli.rc -c statuses -s "tcli.sh rocks!"  


Happy Coding!






COMMENTS: If you wish to comment on a story, please use the Contact Me page. Due to the level of comment spam on the net, this has become the easiest way for me to police it. Thanks



This page is copyright to me, Ben Tasker.

Creative Commons License

This work is licenced under a Creative Commons Licence.


All Images operate under  a seperate license
Please read this page for more information. The Full Image License can be read here


RIPA NOTICE: NO CONSENT IS GIVEN FOR INTERCEPTION OF PAGE TRANSMISSION



DISCLAIMER:


Note: all views expressed on this site are my own, and do not necessarily represent the views of my friends, family or employer.