How do I launch a wine program and get the PID of that wine program and then detect when the wine program closes?
This is how I need to run the wine program in order for it to work
I know this can get the PIDs of the specific wine program hcbg2.exe
Please help, all I want is a simple bash script that when executed it will run the wine app and detect when that wine app is closed and continue executing more code.
This is how I need to run the wine program in order for it to work
Code:
env WINEPREFIX="/usr/share/Applications/Hoyle Board Games" wine "C:\windows\command\start.exe" /Unix "/usr/share/Applications/Hoyle Board Games/drive_c/SIERRA/HCBG2/hcbg2.exe"
I know this can get the PIDs of the specific wine program hcbg2.exe
Code:
ps aux | grep hcbg2.exe | awk '{print $2}'
Please help, all I want is a simple bash script that when executed it will run the wine app and detect when that wine app is closed and continue executing more code.