Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Run a program
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Naveed
New Member

Norway
85 Posts

Posted - 14 June 2001 :  11:12:38  Show Profile  Visit Naveed's Homepage
Is it possible to execute a program through asp-pages? By placing a asp page in the same directory, and start the program from Internet by visiting the webpage, logging in and start it by pressing a button or something???
The program is allready installed, just need a way to start it...

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 14 June 2001 :  11:22:28  Show Profile  Visit HuwR's Homepage
No, not without a third party component

Go to Top of Page

Naveed
New Member

Norway
85 Posts

Posted - 14 June 2001 :  11:24:35  Show Profile  Visit Naveed's Homepage
quote:

No, not without a third party component




What kind of component... The program is allready installed, and the only access I got is Ftp...

Go to Top of Page

Dan Martin
Average Member

USA
528 Posts

Posted - 14 June 2001 :  11:25:53  Show Profile  Visit Dan Martin's Homepage  Send Dan Martin an AOL message  Send Dan Martin an ICQ Message  Send Dan Martin a Yahoo! Message
What type of program? I can tell you how to kick off a java program.

Set myObject = GetObject("java:myClass")

and later you can run methods:
myString = myObject.getSomeString()

But "myClass.class" must be in C:\winnt\java\trustlib.

Eventually in your code you should "Set myObject=Nothing"

However, if you just want to keep it running, you can get by by not setting it equal to nothing. BUT this is bad...you'll never be able to stop it running, until you reset the webserver.

One thing you can do is: Set Session("myObject") = GetObject("java:myClass")
But eventually, you should run a page that does: Set Session("myClass") = Nothing. (or do that on session end in global.asa)

I've used this quite extensively. The hard part is, if you try to run methods in your code, it get's hairy if you are returning something other than a String or an int. But, if you get that far, you can probably figure that part out.

But, if it isn't java, somone else will have to tell you, because I've never tried.
-Dan


Edited by - Dan Martin on 14 June 2001 13:33:53
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 14 June 2001 :  13:41:27  Show Profile  Visit HuwR's Homepage
quote:

quote:

No, not without a third party component




What kind of component... The program is allready installed, and the only access I got is Ftp...





Then you will not be able to execute it. There are third party dll's which allow you to do this, but they would need to be installed on the server, which is unlikely, people do not let you execute applications on their servers for good reason.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07