Stopping emulators from terminal?
-
Hi,
I have a quick question about the terminal functionallity: Is there a common way/script which allows me to quit the currently running emulator from a terminal session? How could I archive that?
-
@daeks You need:
pgrep
kill
tail
/dev/shm/runcommand.info
How to do it:
- Get the last (4th) line of
runcommand.info
withtail
. It's the full command line used to launch the most recent launched emulator. - Check if this command is still running with
pgrep
. - If it's running,
kill
it!
I can't give you a script now cause I'm away from my RetroPie...
-
@meleu thanks :) that will help me alot as a starting point. If you have access to your instance later on, it would be really nice to share a script :)
-
I tried to setup a script and possible extension for retropie here: https://github.com/daeks/jslisten-abort
The intention of this extension is to be able to kill all emulators only with a controller (for example: scummvm if you have no keyboard available)Unfortunately emulators like scummvm are started with bash script. Is there a better way to fetch the binary for such emulators?
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.