Faqts : Computers : Programming : Languages : C#

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 72 people (28%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How to Execute a Unix command/Shell script via .Net web page and get its output?

Apr 2nd, 2009 06:48
engatoo engatoo, Rockys rainwal, Raj Aryan, marine Jone, Deepak Sharma, sachin m, http://rajasthantraintourpackage.blogspot.com/


Adding network communications capabilities to an application is never a
simple matter. It requires specialized knowledge that might be outside
an individual programmer's expertise. For years, VBScript, Visual Basic
and Visual C++ developers have relied upon the power, flexibility and
reliability of the ActiveSocket Network Communication Toolkit from
ActiveXperts Software.
With ActiveSocket you can communicate across TCP/IP networks, including
the Internet. ActiveSocket provides an easy-to-use scripting interface
for TCP/IP communications.
By using ActiveSocket, you can very easily create or enhance
applications with network features.
Use ActiveSocket for different purposes:
To automate Telnet sessions; for instance, network switches are usually
configured manually from a telnet session. You can use ActiveSocket to
automate these Telnet sessions, hiding passwords and specific
configuration menu's from the operators
To create your own client/server applications; your server-application
listens for an incoming connection on a specific port, while your 
client
application makes a connection to it; client and server can do
bidirectional communication, with support for ascii and binary data, in
your LAN or through the internet
To enhance your applications with client/server technologies
To run a Shell Script on a remote UNIX or LINUX computer that runs the
RSH (Remote Shell Script) daemon
To query SNMP enabled devices
Wake up on lan (WOL); on your LAN, wake up machines based on their MAC
address
Many more
ActiveSocket is build on top of Microsoft Winsock modules; instead of
other toolkits on the market, it just uses the Microsoft Winsock
modules, it doesn't replace them! The installation of ActiveSocket 
keeps
your system clean.
The performance of the module is outstanding, due to its multi-threaded
architecture. It has proven its strength in many business environments
over the years.
ActiveSocket is a COM-component, which can be used in Windows
environments that support Visual Basic- or Java scripting. ActiveSocket
can be used by any of the following development and scripting 
languages:
Visual Basic 5.x or higher - Windows based applications
Visual Basic .NET - Windows .NET based application
ASP 2.x - Web site based on Active Server Pages (server-side scripting)
ASP .NET - Web site based on Active Server Pages and the .NET Framework
Visual C++ 5.x or higher - Windows based applications
Visual C# .NET - Windows .NET based applications
VBScript - Windows based scripts
HTML - Client scripts within HTML pages
Features
ActiveSocket features the following:
Connection-oriented communications between applications in a LAN or 
over
the internet
Full TCP/IP
Supports IPX/SPX (Winsock version 2.0 or higher required)
Ascii (displayable) and binary data transfer
Automated telnet sessions
Read SNMP values from SNMP enabled devices or computers
Support for UNIX or LINUX shell scripts; connect to a remote UNIX/LINUX
RSH daemon, run a shell script and read its stderr and stdout
Establish multiple sessions simultaneously, single threaded and/or 
multi
threaded
Wake-up On LAN
Architecture
Windows includes routines for network and Internet communications. 
These
routines are contained in DLLs which are collectively called Winsock
(for WINdows SOCKets). ActiveSocket is built on top of Winsock. It just
uses the Winsock modules, it doesn't replace them, nor does it install
any additional Winsock modules. This preserves a stable Operating 
system
after installing ActiveSocket.
The core of ActiveSocket consists of one file:
ASocket.dll - the 'ActiveSocket COM Component'
ActiveSocket can be distributed easily to many PC's. Once you have
purchased the licenses, you copy the ASocket.dll to the PCs and 
register
the DLL on that PC.
System Requirements
ASP .NET, VB .NET, VC# .NET, ASP, VB, Visual C++ and more 
The ActiveSocket software can be used by using any of these languages:
Visual Basic 5.x or higher
Visual Basic .NET
ASP 2.x
ASP .NET
Visual C++ 5.x or higher
Visual C# .NET
VBScript
HTML - Client scripts within HTML pages - requires Internet Explorer 
4.x
or higher
.NET Framework
To use ActiveSocket in an ASP .NET, Visual Basic .NET or Visual C#. NET
environment, the .NET Framework must be installed on the system. The
.NET Framework is part of the Windows 2003 Operating System. On Windows
2000, Windows 98, Windows ME, Windows NT, Windows Server 2003 and
Windows XP, it's available as a separate installation. 
Internet Information Server
Internet Information Server (IIS) Setup installs the Visual Basic 
Script
and Java Script engines.
To run ASP pages on NT4 Servers, IIS 4.x must be installed. IIS 4.x
ships with the NT4 Option Pack CD's.
To run ASP pages on Windows 2000 Servers, IIS 5.x must be installed. 
IIS
is part of the Windows 2000 Operating System.
Internet Explorer 4.x or higher
The Internet Explorer 4.x Setup (or higher) installs the Visual Basic
Script and Java Script engines.
You can use the ActiveSocket component from within the client HTML 
code.
Windows Scripting Host
ActiveSocket can be used in VBS scripts. VBS scripts can be used by
passing the script-file as a parameter to the scripting host ( either
'cscript' or 'wscript').
WSH relies on the Visual Basic Script and Java Script engines provided
with Internet Explorer 4.x or later. WSH is also installed as part of
Windows 98, Windows 2000, and Internet Information Services 4.0. A
separate setup program is provided for Windows 95.
Visual Basic
ActiveSocket can be used in Visual Basic 5.x or higher. In Visual 
Basic,
go to the 'Project/References...' menu item and check the box next to
ActiveSocket Type Library. Now, you can declare and create ActiveSocket
objects.
Visual C
ActiveSocket can be used inside Visual C++ applications. Use Visual C++
5.x or higher. Include the *.h and *.c file provided by ActiveXperts to
bind your code to the ActiveSocket components.
Visual C samples are installed as part of the product, but can also be
found on our website.
ActiveEmail has the following licensing schemes:
10 Computer Base License Pack
This license allows you to install and use the Software on 10 different
workstations or servers, and 1 web server in your organization. You
cannot purchase a single computer license; the 10 computer license pack
is the minimum. You are not allowed to use the product outside Your
organization or distribute the product as part of your own software.
Enterprise License
This license allows you to install and use the Software on all
workstations and servers in your organization. You are not allowed to
use the product outside Your organization or distribute the product as
part of your own software.
Distribution License
Allows the developer to rent, lease or distribute an unlimited number 
of
licenses of the Software outside Your organization bundled with an
application; You adhere to the following terms:
You may not resell, rent, lease or distribute the Software alone. The
Software must be distributed as a component of an application and
bundled with an application or with the application's installation
files. The Software may only be used as part of, and in connection 
with,
the bundled application
You may not resell, rent, lease or distribute Software in any way that
would compete with ActiveXperts Software
All sample code provided by ActiveXperts Software that is distributed
with your application, may be modified and distributed to Your 
customers
A valid copyright notice must be provided within the user 
documentation,
start-up screen or in the help-about section of your application that
specifies ActiveXperts Software as the provider of the Software bundled
with Your application, for example: your application name contains a
network communication component licensed from ActiveXperts Software.
This component may only be used as part of and in connection with your
application name
You agree to indemnify, hold harmless, and defend ActiveXperts Software
and its suppliers from and against any and all claims or lawsuits
including attorney's fees that arise or result from the use or
distribution of Your bundled application
http://www.jaipurtravelguide.com/
http://www.jaipurtravels.com/
http://www.jaipurjaipur.com/
http://www.jaipurtourismguide.com/
http://www.rajasthantravelsguide.com/
http://www.rajasthantravelguide.co.in/
http://www.travelpackagerajasthan.com/
http://www.namaskarindiatravels.com/
http://www.indianhotelsindia.com/
http://www.travelpackageindia.com/
http://www.navyatravels.com/
http://www.hillstationindiatour.com/
http://www.wildlifeindiatravel.com/ 
http://www.pushkartravels.com/
http://www.udaipurtravels.com/
http://www.agratravels.com/
http://indiantravelguide.co.in/
http://www.traveltoindia.biz/
http://www.info4india.com/
http://www.indiantravelsguide.com/
http://www.indiantravelguideindia.com/
http://rajasthantravelguide.wordpress.com/
http://attractioninjaipur.blogspot.com/
http://jaipurtravelsguide.blogspot.com/
http://hoteles-en-la-india.blogspot.com/
http://jaipurguiadeviajes.blogspot.com/
http://jaipurrajasthanindia.blogspot.com/
http://travelguiderajasthan.blogspot.com/
http://travelguiderajasthan.blogspot.com/
http://wildlifeindiatravel.blogspot.com/
http://indiantravelguideindia.blogspot.com/
http://indianhotelsindia.blogspot.com/
http://rajasthantravelsguide.blogspot.com/
http://pushkartravels.blogspot.com/
http://indiatravelsguide.blogspot.com/
http://goaguidedevoyage.blogspot.com/
http://goatravelsguide.blogspot.com/
http://indiaguadeviajes.blogspot.com/
http://htelseninde.blogspot.com/
http://indienguidedevoyage.blogspot.com/
http://indianhillstationsindiatravel.blogspot.com/
http://jaipurtravelguiderajasthan.blogspot.com/
http://hillstationinindia.blogspot.com/
http://jaipurcarrentals.blogspot.com/
http://indiabudgettourtravelpackage.blogspot.com/
http://romanticrajasthanhoneymoontour.blogspot.com/
http://indianadventuretourpackages.blogspot.com/
http://rajasthantraintourpackage.blogspot.com/
http://jaipurinformationguide.blogspot.com/
http://rajasthanculturaltourpackages.blogspot.com/
http://uttaranchaltourpackages.blogspot.com/
http://luxurytourspackages.blogspot.com/
http://indiahimalayatourtravelpackages.blogspot.com/
http://eastindiatravelpackages.blogspot.com/
http://indiahillstationstravelpackages.blogspot.com/
http://indiatravelpackages.blogspot.com/
http://westindiatourpackages.blogspot.com/
http://lehladakhtourpackages.blogspot.com/
http://indiabudgettourtravelpackage.blogspot.com/
http://romanticrajasthanhoneymoontour.blogspot.com/
http://worldtravelsguide.blogspot.com/
http://jaipursilverjewellery.com/
http://www.jaipurhandicrafts.com/
http://www.roo7e.com
http://www.roo7e.com
http://www.al33ab.com
http://ksacam.com
http://chat.ksacam.com
http://ksacam.info
http://oo2o.com
http://s4cam.com
http://saudi4cam.com				
http://voice.ksacam.com
http://سعودي-كام.oo2o.com
http://سعوديكام.com
http://xn--mgbply5cnrr.com
http://www.3rabstarz.com/vb
http://www.3rabstarz.com/vb
http://www.3rabstarz.com/
http://www.3rabstarz.com/vb
http://www.3rabstarz.com/
http://www.dir.3rabstarz.com/
http://www.up.3rabstarz.com
http://www.3rabstarz.com/vb/forumdisplay.php?f=5
http://www.3rabstarz.com/vb/forumdisplay.php?f=116
http://www.3rabstarz.com/vb/forumdisplay.php?f=66
http://www.3rabstarz.com/vb/forumdisplay.php?f=78
http://www.3rabstarz.com/vb/forumdisplay.php?f=147
http://www.3rabstarz.com/vb/forumdisplay.php?f=2
http://www.3rabstarz.com/vb/forumdisplay.php?f=31
http://www.3rabstarz.com/vb/forumdisplay.php?f=136
http://www.3rabstarz.com/vb/forumdisplay.php?f=34
http://www.3rabstarz.com/vb/forumdisplay.php?f=89
http://www.3rabstarz.com/vb/forumdisplay.php?f=26
http://www.3rabstarz.com/vb/forumdisplay.php?f=72
http://www.3rabstarz.com/vb/forumdisplay.php?f=73
http://www.3rabstarz.com/vb/forumdisplay.php?f=149
http://www.3rabstarz.com/vb/forumdisplay.php?f=150
http://www.3rabstarz.com/vb/forumdisplay.php?f=151
http://www.3rabstarz.com/vb/forumdisplay.php?f=152
http://www.3rabstarz.com/vb/forumdisplay.php?f=67
http://www.3rabstarz.com/vb/forumdisplay.php?f=3
http://www.3rabstarz.com/vb/forumdisplay.php?f=37
http://www.3rabstarz.com/vb/forumdisplay.php?f=115
http://www.3rabstarz.com/vb/forumdisplay.php?f=76
http://www.3rabstarz.com/vb/forumdisplay.php?f=77
http://www.3rabstarz.com/vb/forumdisplay.php?f=36
http://www.3rabstarz.com/vb/forumdisplay.php?f=153
http://www.3rabstarz.com/vb/forumdisplay.php?f=122
http://www.3rabstarz.com/vb/forumdisplay.php?f=118
http://www.3rabstarz.com/vb/forumdisplay.php?f=119
http://www.3rabstarz.com/vb/forumdisplay.php?f=120
http://www.3rabstarz.com/vb/forumdisplay.php?f=121
http://www.3rabstarz.com/vb/forumdisplay.php?f=35
http://www.3rabstarz.com/vb/forumdisplay.php?f=65
http://www.3rabstarz.com/vb/forumdisplay.php?f=7
http://www.3rabstarz.com/vb/forumdisplay.php?f=9
http://www.3rabstarz.com/vb/forumdisplay.php?f=11
http://www.3rabstarz.com/vb/forumdisplay.php?f=142
http://www.3rabstarz.com/vb/forumdisplay.php?f=143
http://www.3rabstarz.com/vb/forumdisplay.php?f=146
http://www.3rabstarz.com/vb/forumdisplay.php?f=140
http://www.3rabstarz.com/vb/forumdisplay.php?f=137
http://www.3rabstarz.com/vb/forumdisplay.php?f=114
http://www.3rabstarz.com/vb/forumdisplay.php?f=117
http://www.3rabstarz.com/vb/forumdisplay.php?f=113
http://www.3rabstarz.com/vb/forumdisplay.php?f=51
http://www.3rabstarz.com/vb/forumdisplay.php?f=84
http://www.3rabstarz.com/vb/forumdisplay.php?f=138
http://www.3rabstarz.com/vb/forumdisplay.php?f=139
http://www.3rabstarz.com/vb/forumdisplay.php?f=15
http://www.3rabstarz.com/vb/forumdisplay.php?f=130
http://www.3rabstarz.com/vb/forumdisplay.php?f=97
http://www.3rabstarz.com/vb/forumdisplay.php?f=102
http://www.3rabstarz.com/vb/forumdisplay.php?f=101
http://www.3rabstarz.com/vb/forumdisplay.php?f=104
http://www.3rabstarz.com/vb/forumdisplay.php?f=131
http://www.3rabstarz.com/vb/forumdisplay.php?f=103
http://www.3rabstarz.com/vb/forumdisplay.php?f=99
http://www.3rabstarz.com/vb/forumdisplay.php?f=59
http://www.3rabstarz.com/vb/forumdisplay.php?f=60
http://www.3rabstarz.com/vb/forumdisplay.php?f=39
http://www.3rabstarz.com/vb/forumdisplay.php?f=40
http://www.3rabstarz.com/vb/forumdisplay.php?f=42
http://www.3rabstarz.com/vb/forumdisplay.php?f=4
http://www.3rabstarz.com/vb/forumdisplay.php?f=1
http://www.3rabstarz.com/vb/forumdisplay.php?f=88
http://www.3rabstarz.com/vb/forumdisplay.php?f=148
http://www.3rabstarz.com/vb/forumdisplay.php?f=62
http://www.3rabstarz.com/vb/forumdisplay.php?f=63
http://www.3rabstarz.com/vb/forumdisplay.php?f=64
http://www.3rabstarz.com/vb/forumdisplay.php?f=6
http://www.3rabstarz.com/vb/forumdisplay.php?f=12
http://www.3rabstarz.com/vb/forumdisplay.php?f=96
http://www.3rabstarz.com/vb/forumdisplay.php?f=58
http://www.3rabstarz.com/vb/forumdisplay.php?f=38