in reply to Re: How to Get The Session id
in thread How to Get The Session id
The perl script 'dailyreport1.pl' will open excel file, generate some graph & then close the excel application. The ASP & perl scripts are on the same host. Infact it is running on the remote server. people are accessing ASP pages from their local system & generating the graphs. The scripts will run on the server. Now the problem is when 2 or 3 people try to generate reports simultaneously, the perl script is not closing the excel application properly. Over a period of time there will be many instances of excel running in the task manager of the server. So if there is any way to link which instance of excel opened by the perl & findout the PID of it, I can forcefully kill that instance of excel process using killfam. I tried to get the process info of all the excel instances running using Win32::Process::Info. But none of the informations is refering to perl. the parent process id of excel will refer to 'svchost.exe' but not perl. Kindly help me out.<% dim dt,dvnm dim fso,tw dim sdt dim rdt dim pdt dim arg dim wsh dim ses ses=Session.SessionID dvnm = request.form("test") dt = request.form("datebox") if dvnm <> "" and dt <> "" then sdt = split(dt,"/",-1,1) rdt = sdt(2)+"/"+sdt(0)+"/"+sdt(1) pdt = sdt(1)+"."+sdt(0)+"."+sdt(2) response.write(dvnm) response.write(dt) arg = "C:\\AsgReportScripts\\dailyscripts\\dailyreport1.pl "& dvnm ++" "+rdt+" "+ses response.write(arg) set wsh = CreateObject("wscript.shell") wsh.run "cmd.exe /c c:\\perl\\bin\\perl " & arg,1,1 set wsh = nothing response.redirect("filesdisplay.asp?path=C:\reports\"&pdt+"_"+ses) end if %>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to Get The Session id
by Jenda (Abbot) on Jun 09, 2005 at 14:28 UTC |