I am writing a script which launches a program under Wine 1.6.2 on my Linux Mint 17.1. but I need to make an injector wait for the Windows process to have started.
I know that I can wait for the winserver:
Code: Select all
while [ ! `wineserver` ]; do
true
done
But it waits for the winserver, not for the child process. Also, in this context I cannot tell it which process to wait for when I have several wine processes running. How do I make my script wait for a specific Windows process to have started?