we can execute the commands by java application by Process p = Runtime.getRuntime().exec("command here") But while running the "gpg --delete-key abc.gpg" in cmd it's asking confirmation are you sure you want to delete this key (y/N) . Here I am bit confused how to implement so that it should accept the next char for the final output.
I am very new to this kind of gpg.Any early help is appreciated. Thanks in advance.
Hi guys Finally I got the command to do it in a single slot of command to do it