[Mono-list] mono:: Remote command Execution

Robert Jordan robertj at gmx.net
Wed May 6 12:40:24 EDT 2009


Bhushand wrote:
> Hello, 
> 
> I want to execute the linux command on remore machine using C# and mono. How
> can i achive this?

using System.Diagnostics;

..

Process.Start(
	new ProcessStartInfo(
		"/usr/bin/ssh",
		"user at host -c 'the linux command'"
	)
);

;)

Robert



More information about the Mono-list mailing list