2010-02-07, 13:26
magnetism Wrote:I'd like to have a more reliable method for local port detection for sure, but somehow this doesn's seem like 'it' to me at the moment (Also, it's not very crossplatform...). Also, the script should be terminating any running makemkvcon before starting another, so what process is still using that port in your case?
Not sure why it didn't re-use 51000, but it definately didn't. Perhaps it was some sort of delay between exit and restart. I'll do some more tests to find out where this is happening.
As for the code, it's almost certainly not 'it' - just something which I hope might have been easier to identify python functions for. I may well do some digging/reading as I'm sick of only being able to write shell scripts...