Stack Exchange
log in
users (8)
rooms (11)
faq
Tuckbros
general
recent
conversations
Discussion between Dave and Tuckbros
Imported from a comment discussion on
stackoverflow.com/questi...
Tuckbros
May 29, 2020 14:18
but not I couldn't start it as a service
Tuckbros
May 29, 2020 14:16
the aim is to be as light as possible, even portable
Tuckbros
May 29, 2020 14:10
and the script itself would stop if it can find another instance itself running
Tuckbros
May 29, 2020 14:09
the user would reach the main page of the app which would start the script.
Tuckbros
May 29, 2020 14:07
I think it is not enough cross-platform, I am going to start it with popen from the php main app
Tuckbros
May 29, 2020 14:03
as "threaded", this script is intended to run in background to "announce" the upnp server
Tuckbros
May 29, 2020 13:58
I also looked around
ignore_user_abort
function but could find nothing
Tuckbros
May 29, 2020 13:53
I am pretty sure there should be a trivial way of getting this... but couldn't find it
Tuckbros
May 29, 2020 13:52
I am already having some hard time with all the socket things...
Tuckbros
May 29, 2020 13:51
I guess it can deal with any keyboard interruption (ie user input), but anyway ctrl-something
Tuckbros
May 29, 2020 13:49
it is not mine but I don't like the idea of having part of the application in php and another part in another language
Tuckbros
May 29, 2020 13:48
you can find the python script I am translating in php here :
github.com/ttyridal/phpdlna/blob/master/tools/announce.py
Tuckbros
May 29, 2020 13:48
thanks for thet help :)
Tuckbros
May 29, 2020 13:46
I don't know how to make it more understandable than how to translate the a python
except KeyboardInterrupt: pass
statement in php.
Tuckbros
May 29, 2020 13:46
the whole code is embedded in the try block, it can happen anywhere. Maybe ̀exception` is not the right approach and signals or events should be handled instead (if better...)
Tuckbros
May 29, 2020 13:46
The thing I want to catch is the same as the one catched by the python
KeyboardInterrupt