Maybe using something like a python script? The reason I want this is I'm making an offline wallet on a raspberry pi and it would be great if all I needed to do was plug in a USB stick with the .txn file on it and wait for it to sign, then I wouldn't need to have it plugged into a monitor and mouse & keyboard.
Thanks