iphone - Can I possibly get shell "echo" or python "print" on a xcode UITableViewCell? (Jailbreak development) -


i trying xcode ios application table have table make cells on new prints or echoes, sets title of uitableview cell print or echo string has gathered. appreciated. im new this, , have tried think of. in advance!

here code use execute shell launches python script.

    -(void)launcechat:(id)sender {        int result2 = system("sudo sh /applications/botvsbot.app/start.sh"); // executes requested file (start.sh)     } 

here part of python script prints bots say

if __name__ == "__main__":     cb1 = cleverbot()     cb2 = cleverbot()      resp1 = cb1.ask("hello.")     print "bob:", "hello"       while true:         print "alice:", resp1         resp2 = cb2.ask(resp1)         print "bob:", resp2         resp1 = cb1.ask(resp2) 

here contents of start.sh file.

cd /var/mobile/cleverbot && sudo python cleverbot.py 

here contents of install.sh file.

sudo apt-get install python -y && sudo apt-get install wget -y && sudo mkdir /var/mobile/cleverbot && cd /var/mobile/cleverbot && sudo wget http://74.63.212.202/wget/cleverbot/cleverbot.py && sudo wget http://74.63.212.202/wget/cleverbot/__init__.py 

this way python script output data.

alice: *kicks*. bob: *kicks back*. alice: *kicks harder*. bob: *is kicked harder*. 

you can try write script output file , read app, or post darwin notification , receive them in app.


Comments