[Mono-list] How to Start Concatenated Processes by Using System.Diagnostics.Process?

Jacek Rużyczka stacheldraht at interia.pl
Fri Jun 18 05:13:45 EDT 2010


Am Donnerstag 17 Juni 2010 16:25:04 schrieb Robert Jordan:
> This. Or pass the commands to a shell process (untested):
> 
> ProcessStartInfo info = new ProcessStartInfo();
> info.UseShellExecute = false;
> info.FileName = "/bin/bash";
> info.Arguments = "-c 'pdflatex -interaction=nonstopmode receipt_60.tex
> && gpg ... '";
> 
> Note the quoting of the string for the -c option and latex
> -interaction switch.
> 
OK, thanks. The bash solution, I'm afraid, will not work for me as my app will 
also run on Windows, and I can hardly require my Windows users to install 
MinGW.

But reagrding the solution with the two Process objects I've got a question. 
Normally, Process.Start() returns true once a process has been started 
successfully. However, I can only start gpg when pdflatex has successfully 
completed (!) its work.

Any solutions for this issue?

Regards
Jacek

----------------------------------------------------------------------
Kup wlasne mieszkanie za 72 tys. zl.
Sprawdz najlepsze oferty >>> http://linkint.pl/f2723



More information about the Mono-list mailing list