summaryrefslogtreecommitdiff
path: root/contrib/winedbg-pid
blob: 0c04115f4f51cb158d37f66ed35730fb984f9524 (plain)
1
2
3
4
#!/bin/sh
# usage: winedbg-pid process-name
# Get windows process id with process name
winedbg --command 'info process' | awk '/'"${@:-0xdeadbeef}"'/ { print strtonum("0x"$1) }'