I\'d like to write a script that (under certain conditions) will execute gdb and automatically run some program X with some set of arguments Y. Once the program has finishe
With bash you can create a script that give user like input to any executable you're executing:
#!/bin/sh gdb X <