user2008456
user2008456

Reputation: 1

How to pass commands/scripts to Linux servers from ASP.NET

We are trying to pass commands or shell scripts execution to Linux server from ASP.net.

For example, if we pass command ls from ASP.NET to Linux server, then it must provide a list of files present in the respective path to ASP.NET as output.

Can anyone share the idea how we can achieve this?

Upvotes: 0

Views: 794

Answers (2)

gaborsch
gaborsch

Reputation: 15758

If you only need to access to the file system, consider using Samba. You can mount the remote file system to the Windows machine.

Another possibility is to access the files through FTP.

Upvotes: 0

Alexei Levenkov
Alexei Levenkov

Reputation: 100545

telnet and other remote shell protocols are there for this.

Note: without proper security considerations it is very dangerous idea.

Upvotes: 1

Related Questions