Don't know if this helps, but I made a bash script with the following: Code: env WINEPREFIX="/home/shjake/steam" wine C:\\windows\\command\\start.exe steam://rungameid/400 ps -ef | grep hl2.exe Then when to terminal and did: Code: '/home/shjake/Desktop/Portal' &> ./Desktop/run.log "Portal" being the name of the script. run.log contains this: > fixme:exec:SHELL_execute flags ignored: 0x00000100 > shjake 5498 5492 0 23:32 pts/0 00:00:00 grep hl2.exe Am I getting any closer to what you want? I guess now we have to figure out how to pass one of those process ids to the gdb thing. The process id for hl2.exe changes each time. Cheers, Jake