Author |
Topic  |
|
Naveed
New Member

Norway
85 Posts |
Posted - 14 June 2001 : 11:12:38
|
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
|
No, not without a third party component
|
 |
|
Naveed
New Member

Norway
85 Posts |
Posted - 14 June 2001 : 11:24:35
|
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...
|
 |
|
Dan Martin
Average Member
  
USA
528 Posts |
Posted - 14 June 2001 : 11:25:53
|
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 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 14 June 2001 : 13:41:27
|
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.
|
 |
|
|
Topic  |
|