ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 8th, 2003, 09:38 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
Question Running an executable on the server

I want to make my asp page run a program (written in VB6) on the server, without the user having to do anything. The asp page is part of a form handler that inserts data into a database, then sends an email to the user. The program creates an html page that incorporates some of the user's data they entered (its a datareport). The html page is then attached to the email sent. So you can see, there isn't a time for the user to click a button or something to run the program, it must run and close itself in the background. Closing itself is also a question. Do I write that into the program, or as part of the asp page? In summary, my questions are:

1. How do I execute a program using asp (any scripting language), without the user taking any action.

2. To close the program (written in VB6) do I include something in the program itself, or do I close it w/ asp?

Thanks in advance
__________________
--Dave--

U2kgSG9jIExlZ2VyZSBTY2lzLCBOaW1pdW0gRXJ1ZGl0aW9uaXMgSGFiZXM=

Reply With Quote
  #2  
Old July 8th, 2003, 11:27 AM
Tim_Lensen's Avatar
Tim_Lensen Tim_Lensen is offline
Wonder of the world
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: the Netherlands
Posts: 22 Tim_Lensen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You want to make a report and insert some data in the database right? Then wouldn't it be easier to just make an asp.

Reply With Quote
  #3  
Old July 8th, 2003, 12:57 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
No, I already have that. Sorry, I guess I wasn't clear. The form already inserts the data into the database. The report then takes some of that new data out of the database and puts it into a few fields (first name, initial, last name, computer id). The form is exported as html, which the user then prints, and fills in some other, empty, fields and sends it back to us. Its part of an authentication for user access to a different database. The form needs to be filled out, and we (my boss) doesn't trust the users to get it right, so he wants it filled in automatically as much as possible. I already have the program and such working on my local computer, I need to move the executable to the server, and figure out how to run it from my asp page that handles the original form that is filled out. I hope this is more clear.
This is rather a messy solution, but I was given a messy, half done problem, so it will have to do.

Reply With Quote
  #4  
Old July 9th, 2003, 08:34 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
I agree with you about the security problems and the basic ugliness of this program setup. I'm just an intern though so I'm just going to give them what they asked for, since I won't be around to deal with the problems
Could you elaborate what you meant about making the .dll for the asp to use? I don't have experience with that. Thanks for your help

ps- the parameter is the WaitOnReturn parameter, "that specifies whether the script should immediately return to script execution (False) rather than waiting for the process to end (True) and return any error codes returned by the application"
In case anyone wondered.

edit: I'm getting a "The system cannot find the file specified" error for my .exe. I did a Server.MapPath to find it, but it still won't accept it. Anyone have a suggestion?

Last edited by karsh44 : July 9th, 2003 at 09:41 AM.

Reply With Quote
  #5  
Old July 9th, 2003, 09:44 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
Ah, I see. That is a good idea, I'll give it a try. (The only problem is getting it registered on the web server, which I can't access...)
Thanks.

Reply With Quote
  #6  
Old July 9th, 2003, 03:14 PM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
Well, you can rest easy echolalia. The boss has changed his mind (due to combination of my difficulties doing things this way and the fact he may have grasped how insecure this is). So now its on to csv and word merge document. All this instead of just letting the users fill in their own lan ID. Thanks anyway for all your help and suggestions (on this and my other questions, all of which have been related to this !#$!$@ project). I really appreciate it.

Reply With Quote
  #7  
Old October 9th, 2003, 10:34 AM
don_sparko's Avatar
don_sparko don_sparko is offline
Digitally Challenged
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 280 don_sparko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 14 sec
Reputation Power: 6
karsh, i'm interested in doing just what you did! its for an intranet like yours was. the following posts look like they are missing someone's reply. could you tell me how you did it or point me to a site?

thanks
__________________
My brain cells are like a storm trooper's armor: useless

Reply With Quote
  #8  
Old October 9th, 2003, 11:47 AM
karsh44's Avatar
karsh44 karsh44 is offline
Just another guy
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2003
Location: Wisconsin
Posts: 2,915 karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level)karsh44 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 13 h 13 m 21 sec
Reputation Power: 76
Actually, I never did get it to work, too many issues with permissions and such.
I ended up using the file system object to write the data into a page I made at the start (so that the previous entry was written over each time), then sending that.
The final way suggested here was to use the file scripting object, but to pack it in a .dll as a component. Never did it, don't have any more to tell you.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Running an executable on the server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway