Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to access a unix server and execute a script on it through dot net....please suggest me how to do it
Posted

1 solution

If the script isn't exposed as a service, you'll likely need to open a (secure) telnet session and execute the command.

There is a great project I've referenced before on CP here: Terminal Control Project (C# VT100 SSH Telnet)[^]

Alternatively, you could create a webpage/script on Apache which calls the script when the page is requested.

Not sure your deployment scenario, but be mindful of security.

Cheers.
 
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