Run program on web server after file upload
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > Run program on web server after file upload




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Run program on web server after file upload  
Nathan Simpson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:18 PM

Hi,

Is it possible and how to run a program on our webserver after a file has
been uploaded? This is all server based.

We have a requirement that an end user uploads a file to our web server.
After the file has been uploaded the next line of code needs to call a
program installed on the webserver that runs a remote command on our AS/400.

TIA

Nathan







[ Post a follow-up to this message ]



    Re: Run program on web server after file upload  
Aaron [SQL Server MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:18 PM

Since running an executable requires elevated privileges (IUSR, the
anonymous user for ASP, is quite restricted), I suggest this approach
instead:

(a) When a file is uploaded, add an entry to a database.
(b) Have a script, or EXE, running from windows scheduler (every minute, or
every minutes, whatever)
(c) The script or EXE wakes up, checks the database, and executes any new
tasks that have been added.
(d) The script then calls a procedure that deletes/flags the processed row.

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Nathan Simpson" <nathansimpson@optusnet.com.au> wrote in message
news:#iwb9LoWEHA.1656@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> Is it possible and how to run a program on our webserver after a file has
> been uploaded? This is all server based.
>
> We have a requirement that an end user uploads a file to our web server.
> After the file has been uploaded the next line of code needs to call a
> program installed on the webserver that runs a remote command on our
AS/400.
>
> TIA
>
> Nathan
>
>







[ Post a follow-up to this message ]



    Re: Run program on web server after file upload  
Bullschmidt


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-28-04 01:55 PM

If the code on the same page won't wait for the upload to complete,
perhaps have a redirect toward the bottom of the page to another page
that then runs things as it should.

Response.Redirect "myotherpage.asp"

WshShell
Scott Mitchell - 5/14/2001 4:07:58 PM
http://www.aspmessageboard.com/foru...213545&F=27&P=1

4GuysFromRolla.com : ASP FAQS : The Nature of Things
Question: How can I call an executable program from my ASP page? by Bill
Wilkinson - 10/17/2000
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=67

Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:38 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register