omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    StaSh and screen, persistent ssh shell

    Pythonista
    2
    2
    1992
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Aurelius
      Aurelius last edited by

      I'm very impressed with the functionality of Pythonista, but one feature I would really like is the ability to ssh to a server and run a script, only not a script on the server, instead one on the iDevice. The problem is: it seems to achieve what I'd like to do (and I'm sure opens up a lot of possibilities for what others want to do too) is prevented by lack of tty emulation. I've seen other discussions regarding screen, though no immediate solutions pop up. I understand tty is not included in pythonista, per the pexpect Module thread. What is preventing this?

      I just want to get the ball rolling on a discussion of what I think is an important feature for pythonista to have: the ability to go beyond the current ssh with args to run a script and disconnect when the command is issued...

      Being able to ssh, run screen, and answer console prompts from a running program seem necessary to make Pythonista capable of some pretty neat tricks. Building out a UI on top of the iDevice running script seems relatively trivial with Hydrogen (e.g. buttonX press sets string to 'cd folder/folder2/' & sends, buttonY press sets sting to 'sudo java -jar com.example.program.jar & sends)

      What are everybody's thoughts?

      1 Reply Last reply Reply Quote 0
      • briarfox
        briarfox last edited by

        StaSh ssh can keep the terminal open, and not just issue a single command. I believe it do work with screen, you just can only connect to one screen. If so type:
        ssh [--password PASSWORD] [-p PORT] user@host
        You should login to terminal. I use this to handle all my git repositories from the ipad. ssh also supports Pub key authentication.

        You can also submit stash requests on github.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors