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.


    Running a Python script via an SSH connection inside Pythonista = failure

    Pythonista
    2
    2
    2052
    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.
    • oliverhaslam
      oliverhaslam last edited by

      Hi all,

      First post and new to both Python and Pythonista, so be gentle!

      I have a Pelican website, which is a Python-generated static site. To generate the HTML, you run a Python script and pass it some arguments along the way. What I want to do is eventually turn that into a one-button process using Launch Center Pro, using Pythonista.

      I have a script that makes the connection and runs the command fine, but that's it. The Python script never completes on the server, even if I hide the whole thing inside a BASH script and run that from Pythonista.

      Am I right I'm thinking that my main problem is that I'm effectively trying to run a script within a shell that's Python itself?

      Am I over-complicating things?

      I can offer the script etc if that will help.

      Cheers.

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

        Can you offer a little more details, like how you are trying to run it from python, vs how you run normally?

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