Click here to Skip to main content
15,904,934 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I open a cmd window and pass in hardcoded values using a batch file.Actually we have a Unix Server with user name and password.after login to this host,there are some common commands that usually running.

How i can run these usually using commands through C# ..is there any built in library or how we can give commands at run time automatically.
Posted
Comments
Richard MacCutchan 17-Nov-15 8:41am    
Unix uses shell scripts, not batch files. Please edit your question and explain exactly what you are trying to do, and what this has to do with C#.

1 solution

For Linux / BSD - use an SSH client library to open a remote shell on the target host.

Examples:

sharpSsh - A Secure Shell (SSH) library for .NET[^]

http://sshnet.codeplex.com/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900