I need to create an ASP page (classic, not ASP.NET) which runs remote shell scripts on a UNIX server, then captures the output into variables in VBScript within the page itself.
我需要创建一个在UNIX服务器上运行远程shell脚本的ASP页面(经典,而不是ASP.NET),然后在页面本身内将输出捕获到VBScript中的变量中。
I have never done ASP or VBScipt before. I have tried to google this stuff, but all I find are references to remote server side scripting, nothing concrete.
我之前从未做过ASP或VBScipt。我试图谷歌这个东西,但我找到的只是对远程服务器端脚本的引用,没有什么具体的。
I could really use:
我真的可以用:
- An elementary example of how this could be done.
- Any other better alternatives to achieve this in a secure manner.
如何做到这一点的基本例子。
任何其他更好的替代品,以安全的方式实现这一目标。
Are there any freeware/open source alternatives to these libraries? Any examples?
这些库是否有任何免费软件/开源替代品?任何例子?
2 个解决方案
#1
0
If the shell scripts are normally run on a telnet session then you could screen scrape and parse the responses. There are commercial COM components out there such as the Dart telnet library: http://www.dart.com/pttel.aspx that would let you do this.
如果shell脚本通常在telnet会话上运行,那么你可以屏幕抓取并解析响应。有商业COM组件,如Dart telnet库:http://www.dart.com/pttel.aspx,可以让你这样做。
Either that or you could roll your own using AspSock http://www.15seconds.com/component/pg000300.htm
或者你可以使用AspSock http://www.15seconds.com/component/pg000300.htm自己动手
#2
0
@Pascal, sadly I'm not aware of any F/OSS alternatives. We usually just buy in these types of libraries provided that they're not hugely expensive, and more often than not the cost is built into the customer's overall project cost.
@Pascal,遗憾的是我不知道任何F / OSS替代方案。我们通常只是购买这些类型的库,只要它们不是非常昂贵,并且通常会将成本纳入客户的整体项目成本中。
If you had .NET on the server, you could build a COM wrapped component to do the heavy lifting around System.Net.Sockets.TcpClient. Just a thought.
如果您在服务器上安装了.NET,则可以构建一个COM包装组件来对System.Net.Sockets.TcpClient进行繁重的工作。只是一个想法。
#1
0
If the shell scripts are normally run on a telnet session then you could screen scrape and parse the responses. There are commercial COM components out there such as the Dart telnet library: http://www.dart.com/pttel.aspx that would let you do this.
如果shell脚本通常在telnet会话上运行,那么你可以屏幕抓取并解析响应。有商业COM组件,如Dart telnet库:http://www.dart.com/pttel.aspx,可以让你这样做。
Either that or you could roll your own using AspSock http://www.15seconds.com/component/pg000300.htm
或者你可以使用AspSock http://www.15seconds.com/component/pg000300.htm自己动手
#2
0
@Pascal, sadly I'm not aware of any F/OSS alternatives. We usually just buy in these types of libraries provided that they're not hugely expensive, and more often than not the cost is built into the customer's overall project cost.
@Pascal,遗憾的是我不知道任何F / OSS替代方案。我们通常只是购买这些类型的库,只要它们不是非常昂贵,并且通常会将成本纳入客户的整体项目成本中。
If you had .NET on the server, you could build a COM wrapped component to do the heavy lifting around System.Net.Sockets.TcpClient. Just a thought.
如果您在服务器上安装了.NET,则可以构建一个COM包装组件来对System.Net.Sockets.TcpClient进行繁重的工作。只是一个想法。