FFmpeg update or response?

I’m trying to figure out how I’m going to find out that a video has completed converting. I’ve read that there’s a possibility that you can output something to a .txt file and read the last lines… but is there a way to execute a server-side script once the conversation has completed? How is this normally done?

I don’t know why this is so elusive. Thanks for your help.