Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 18th, 2006, 09:25 PM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Executing a java program from an ASP page

Hi all :),

THis is my first posting in this forum and I am sure I can get some help here which I urgently require.

I am working on a ASP page which conducts a survey. I am saving the feedback as a Text file,which I then need to attach to a Trouble Ticket(created with a Ticketing tool). I have a java code that attaches the text file to this ticket.

Now, the Ticketing tool is placed in one server while my asp page is hosted in another server. I have placed the java code in the same server as the IIS. The problem is, when I run the java program by loggin on the server, it executes perfectly but when I call the same program from my asp page using the following code, it dosen't execute.

cmdString = "cmd /c D: & java MyJavaProg"
set filesys = Server.CreateObject("WScript.Shell")
temp = filesys.run(cmdString,0,True)
set filesys = nothing

If it can be of any help, when I execute the program directly in the server, the process gets created under my login but when it runs from the page, it gets created under a username, Network Service.
I have provided Full access right to that username for all the related files and folders but it didn't help :(.

Please help me.

Thanks in advance,
Anir_D




 
Old July 2nd, 2006, 10:58 AM
ctt ctt is offline
Registered User
 
Join Date: Jul 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ctt
Default

Do you get some type of error, or does it just not execute?
I've used the cmd to access ftp via this method and it did work, - try piping the output to the temp file so you can see if it is asking for a command that you are not giving it.

- Michael Levkoff -





Similar Threads
Thread Thread Starter Forum Replies Last Post
executing a jsp program on tomcat server sushant2002 JSP Basics 2 August 28th, 2007 10:54 PM
Executing Third Party Program from .NET peter2004 ASP.NET 2.0 Professional 0 February 28th, 2007 08:47 PM
Executing Oracle Scripts from ASP Page acpt Classic ASP Basics 0 May 3rd, 2005 08:33 AM
Executing DTS package from ASP page via SP savoym Classic ASP Basics 0 April 28th, 2005 07:02 AM
Executing an external program. saint VB.NET 2002/2003 Basics 3 July 22nd, 2003 08:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.