[Mono-devel-list] System.Diagnostic.Process and /dev/tty

Robert J. Hansen rjh at acm.uiowa.edu
Sat Jun 11 18:06:49 EDT 2005


I'm attempting to write a simple interface between C# and the GNU
Privacy Guard, but I'm running into a problem.  Namely, whenever I set
processObject.RedirectStandardInput to true, GnuPG will die screaming
because it can't access /dev/tty.

Obviously, the best bet would be to tell GnuPG that it's being
redirected and thus not to have a conniption.  I asked about this on
GnuPG-devel some time ago and received no answer.  I'm hoping that
there'll be a workaround somewhere in C# which will allow me to fool
GnuPG into thinking it's got a tty.

The test system is Debian Sarge with the latest Mono 1.1.7.  I also test
builds on Windows, which doesn't have this problem (probably due to
Win32's lack of /dev/tty).

I'm hoping someone here can point me in the right direction.  Thanks!  :)



More information about the Mono-devel-list mailing list