RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Starting game remotely / via command line.

    Scheduled Pinned Locked Moved Help and Support
    command-linestart gameservice
    2 Posts 2 Posters 680 Views
    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.
    • R
      raccoon42
      last edited by

      Hello everyone!
      I'm currently in a project in which i must build an Arcade and (to make a long story short), i also must be able to start games using some kind of service.

      What I've tried so far was: Creating a web-service in Python that runs the following command:

      /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ snes "/path/to/rom.zip"
      

      This works if i'm using the command in the Raspberry's terminal. However, when the web-service (that is running as a Linux service) uses the same command, it doesn't return any errors (return code zero), but the game does not appear in the screen.

      My question is: Is there a way to make it work? Make a service run the command and the game starts to run as a foreground process.

      I'm currently using a Raspberry Pi Zero W and the latest version of RetroPie.

      Best regards.

      1 Reply Last reply Reply Quote 0
      • ClydeC
        Clyde
        last edited by

        See here: https://askubuntu.com/questions/47642/how-to-start-a-gui-software-on-a-remote-linux-pc-via-ssh

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.