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
you can run electrum from the command line so you can ssh into your pi and access electrum that way.
type `electrum help` at the console to see the command line options