Getting the rom name and emulator
-
SIGKILL (-9) is bad, SIGTERM (-15) is totally normal.
Default behaviour of kill/pkill is to send a SIGTERM. -
@cyperghost said in Getting the rom name and emulator:
I thought killing processes by pkill/kill is bad style? Isn't it not?
IMHO this is THE method for killing processes. :)
I think we can strongly simplify things here, but I don't know what exactly @daveyman123 wants to do nor what exact info his python script needs.
-
@meleu
you mean how can i replicate the scrolling text on the unicorn using bash?Right now its done using a script i got off github https://github.com/topshed/UnicornHatScroll/blob/master/UHScroll.py
I think the problem is however that as soon as runcommand-onstart.sh exits the python script stops running
I will look into cyperghost's loop.sh example again and see if that works to put the python script in there
-
@daveyman123 do you want the text scrolling during all the time the emulator is running?
-
@meleu Now I'm surprised :D meleu the p-killer :)
I think @daveyman123 wants to scroll romname on the hat.
-
yes. and to be honest this is for a customer on freelancer paying me 20 bucks.
if you guys get it to work I will pay you each 10 dollars on paypal. -
@daveyman123 damn! It can be a crazy thing, but when there is money involved part of the willing decreases... :)
I'll try to help you anyway... hold on a little.
-
@meleu
@cyperghost
where are you guys from? :) -
@daveyman123 I think you better give the 20 bucks to @meleu and he buys me a Caipirinha :).
@meleu Nice selfie!
-
@daveyman123 you may know my compatriot here:
-
https://gyazo.com/fdca868affb3ecd1f7c6f6accf2bd267
gif showing progress so far -
@cyperghost said in Getting the rom name and emulator:
@daveyman123 I think you better give the 20 bucks to @meleu and he buys me a Caipirinha :)
Let me know when you come to Rio de Janeiro and we'll drink some Caipirinhas and try to find some arcade to play Street Fighter or something. :)
-
@meleu Don't make any jokes! My company got's a branch office in south america. For three or four weeks a company pal was in Rio to sell goods and he visited his girlfriend there. So it could happen I'm in :) It's unlikly but never say never :)
SFII? I was more addicted to MK! But for the Caipis sake :)
-
You could try something like
sleep 5 while [$(pidof retroarch)] do *script to scroll once* sleep 5 done
Lauched in background by runcommand-onstart.
-
20 bucks to @meleu it is
-
@cyperghost it's not a joke! Consider yourself invited. Any game is fun with enough alcohol and friends. :-)
-
Let's get back on topic...
@daveyman123 usually your python script scrolls the text only once or keeps looping the text?
-
@sano I think it isn't a matter of the retroarch-PID more that the script does anyting.
But it's a nice catch to end a process by watching the retroarch-PID.@meleu and me descriped also ways to terminate a running script :)
And thanks for the invitation. It's very unlikely that I ever enter brazil, but as I said never say never and market development changes quickly. My next stops will be more east .... romania, bulgaria, russia, belarussia...
-
@meleu
scrolls the text once. I would like it to eventually loop. but right now it stops as soon as the game actually launches -
@daveyman123 got it. I'll try something when I get home (it means 4 or 5 hours).
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.