473,498 Members | 98 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

execute a binary from ASP

Evening all... hope you are surviving Xmas and ready for new year...

I have an application that I maintain/develop for a company and I am soon to
start work on subsuming the functionality of a VB prog into it's web based
replacement, all going swimmingly at the mo. But, I have been given some
code that telnets onto a router looking for alrms and I need to replicate
this in ASP. My favourite way would be to call the root code of the original
application and it perhaps deposit the results somewhere I can get to them,
a CSV or whatever...

Question: how can I call out to a bit of binary on the server (in similar
fashion to VBs "shell" command) without having to buy a 3rd party component?
(budgets, blah blah)

Even if I don't use the original code, I will still need to telnet in and
query the router - in the background and with no more requirement from the
user than: click on a link... brief pause... results in a web page. So
telnet:// in the link is not an option - we can't have Johnny User dabbling
with the router from a command line :o)

It's not the returning of the results, I can think of a hundred ways to get
the data back into the asp loop, or the winsock stuff to do a robotic
telnet, it's the actual *executing of the code* that does the dirty work.

Any ideas warmly welcomed.

TIA, best wishes to all for 2004
Jul 19 '05 #1
3 1812
heh... live 'n' learn... why did I not consider
Server.CreateObject("WScript.Shell")?

gawd! I feel sheepish... Thanks for looking anyway :o)

<snipped embarrassing newb-like question>
Jul 19 '05 #2
UncleWobbly wrote:
Evening all... hope you are surviving Xmas and ready for new year...

I have an application that I maintain/develop for a company and I am
soon to start work on subsuming the functionality of a VB prog into
it's web based replacement, all going swimmingly at the mo. But, I
have been given some code that telnets onto a router looking for
alrms and I need to replicate this in ASP. My favourite way would be
to call the root code of the original application and it perhaps
deposit the results somewhere I can get to them, a CSV or whatever...


http://www.aspfaq.com/show.asp?id=2059

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #3
Thanks for this Bob... I had pretty much worked this out 10mins after my
original posting :o|

but this is a fine article that answers everything I need - much
appreciated.
"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl...
UncleWobbly wrote:
Evening all... hope you are surviving Xmas and ready for new year...

I have an application that I maintain/develop for a company and I am
soon to start work on subsuming the functionality of a VB prog into
it's web based replacement, all going swimmingly at the mo. But, I
have been given some code that telnets onto a router looking for
alrms and I need to replicate this in ASP. My favourite way would be
to call the root code of the original application and it perhaps
deposit the results somewhere I can get to them, a CSV or whatever...


http://www.aspfaq.com/show.asp?id=2059

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
9784
by: Lyle Fairfield | last post by:
MS-SQL Server utilities Enterprise Manager and Query Analyzer will model almost any MS-SQL object as a simple script file with a default ".sql" extension. But how to "run these files? They are...
6
16356
by: Joseph | last post by:
Hi, I am trying to develop a C# application that will run on Windows that will do the following * Select file name to process * FTP the file to a UNIX server * Process this file on UNIX using a...
9
1150
by: PagCal | last post by:
Is this the default and expected behavior for vb.net? 'C' and 'C++' used to skip b() if a() was not true, because there was no way the IF expression would ever be true. For example, if you did...
13
14115
by: nickyeng | last post by:
I have the apache files in my directory: /home/Nick/apache_1.3.33 I have files : Install README apache apache.exe
1
10242
by: nickyeng | last post by:
I use cygwin in windows xp, i ask the question in linux subforum is because cygwin is a linux-environment simulator in windows, so basically command are the same as linux-OS. I install the web...
19
11267
by: citronelu | last post by:
Is it possible to execute a binary string stored within a python script as executable code ? The script is run under Windows, and the binary code (a full executable file) is stored in a variable...
1
2646
by: Tony Freixas | last post by:
Hello, I'm trying to create a wrapper for a program. I want to execute program 'X' by running program 'Y', such that 'Y' appears to function pretty much like 'X' both in the way command line...
15
2786
by: tmp123 | last post by:
Hello, Thanks for your time. We have very big files with python commands (more or less, 500000 commands each file). It is possible to execute them command by command, like if the commands...
4
19477
by: pizzetta72 | last post by:
Hi all, i just finish to install cygwin on windows XP adding also gcc compiler module. After I tried to execute a file called fstsg.0.3-sparc (www.fstha.com) used to cript a Unix shell, I receive...
1
2005
by: frankvw | last post by:
Hi, Sorry if this is an obvious question but I am new to python and can't seem to find an easy example for what I want to to. I would like to define a button with tinker and then have that...
0
6998
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4904
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4586
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.