I am using a system(gpg --decrypt ...) call from a script and for some reason it does not work. (the same gpg call works fine from the command line though).
How can I find out what is going on there? How to monitor what kind of error the system call gives me?