473,320 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem with exec ?

Hi

the following works fine in an html page

<!--#exec cgi="/cgi-bin/pr/pr_log.cgi"-->

but not with an asp page

include like

<!--#include file="header.asp"-->
works fine in the ASP

Clues on how to trouble shoot would be appreciated

Regards

John Berman
Jo*********@blueyonder.co.uk
Jul 19 '05 #1
6 3497
Tried;

Response.Execute "thefile.cgi"

??

I'm not aware of being able to do it the way your trying........ (never had
a need to find out)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
John Berman <Jo*********@blueyonder.co.uk> wrote in message
news:Ae*****************@news-binary.blueyonder.co.uk...
Hi

the following works fine in an html page

<!--#exec cgi="/cgi-bin/pr/pr_log.cgi"-->

but not with an asp page

include like

<!--#include file="header.asp"-->
works fine in the ASP

Clues on how to trouble shoot would be appreciated

Regards

John Berman
Jo*********@blueyonder.co.uk

Jul 19 '05 #2
good though, I get the following error:

Vbscript Runtime error 'ASP 0185 : 438'
Object does not support this property or method

John B

"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
news:OU**************@TK2MSFTNGP12.phx.gbl...
Tried;

Response.Execute "thefile.cgi"

??

I'm not aware of being able to do it the way your trying........ (never had a need to find out)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
John Berman <Jo*********@blueyonder.co.uk> wrote in message
news:Ae*****************@news-binary.blueyonder.co.uk...
Hi

the following works fine in an html page

<!--#exec cgi="/cgi-bin/pr/pr_log.cgi"-->

but not with an asp page

include like

<!--#include file="header.asp"-->
works fine in the ASP

Clues on how to trouble shoot would be appreciated

Regards

John Berman
Jo*********@blueyonder.co.uk


Jul 19 '05 #3
Whats this cgi file meant to be doing? (i.e. does it do anything you can't
do in simple ASP?)

My reason for asking is, couldn't you just code it in VBScript and stick it
straight into the .asp file?, if not, you could always use;

response.redirect "thepage.cgi"

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
John Berman <Jo*********@blueyonder.co.uk> wrote in message
news:CM*****************@news-binary.blueyonder.co.uk...
good though, I get the following error:

Vbscript Runtime error 'ASP 0185 : 438'
Object does not support this property or method

John B

"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message
news:OU**************@TK2MSFTNGP12.phx.gbl...
Tried;

Response.Execute "thefile.cgi"

??

I'm not aware of being able to do it the way your trying........ (never

had
a need to find out)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
John Berman <Jo*********@blueyonder.co.uk> wrote in message
news:Ae*****************@news-binary.blueyonder.co.uk...
Hi

the following works fine in an html page

<!--#exec cgi="/cgi-bin/pr/pr_log.cgi"-->

but not with an asp page

include like

<!--#include file="header.asp"-->
works fine in the ASP

Clues on how to trouble shoot would be appreciated

Regards

John Berman
Jo*********@blueyonder.co.uk



Jul 19 '05 #4
ASP doesn't support the #EXEC directive. You can hit the URL using XMLHTTP;
see http://www.aspfaq.com/2173

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"John Berman" <Jo*********@blueyonder.co.uk> wrote in message
news:Ae*****************@news-binary.blueyonder.co.uk...
Hi

the following works fine in an html page

<!--#exec cgi="/cgi-bin/pr/pr_log.cgi"-->

but not with an asp page

include like

<!--#include file="header.asp"-->
works fine in the ASP

Clues on how to trouble shoot would be appreciated

Regards

John Berman
Jo*********@blueyonder.co.uk

Jul 19 '05 #5
Thanks. ASP does support some SSI commands, is there a list online showing
what it does support ?

Regards

John B

"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:eK**************@TK2MSFTNGP12.phx.gbl...
ASP doesn't support the #EXEC directive. You can hit the URL using XMLHTTP; see http://www.aspfaq.com/2173

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"John Berman" <Jo*********@blueyonder.co.uk> wrote in message
news:Ae*****************@news-binary.blueyonder.co.uk...
Hi

the following works fine in an html page

<!--#exec cgi="/cgi-bin/pr/pr_log.cgi"-->

but not with an asp page

include like

<!--#include file="header.asp"-->
works fine in the ASP

Clues on how to trouble shoot would be appreciated

Regards

John Berman
Jo*********@blueyonder.co.uk


Jul 19 '05 #6
http://msdn.microsoft.com

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
John Berman <Jo*********@blueyonder.co.uk> wrote in message
news:A_******************@news-binary.blueyonder.co.uk...
Thanks. ASP does support some SSI commands, is there a list online showing
what it does support ?

Regards

John B

"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:eK**************@TK2MSFTNGP12.phx.gbl...
ASP doesn't support the #EXEC directive. You can hit the URL using

XMLHTTP;
see http://www.aspfaq.com/2173

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"John Berman" <Jo*********@blueyonder.co.uk> wrote in message
news:Ae*****************@news-binary.blueyonder.co.uk...
Hi

the following works fine in an html page

<!--#exec cgi="/cgi-bin/pr/pr_log.cgi"-->

but not with an asp page

include like

<!--#include file="header.asp"-->
works fine in the ASP

Clues on how to trouble shoot would be appreciated

Regards

John Berman
Jo*********@blueyonder.co.uk



Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Filip Dreger | last post by:
Each function has a func_code property that is suposed to contain the pure bytecode of the function. All the context (including reference to relevant namespaces) is stored in different fields of...
4
by: Oracle 9Ri2 AS 2.1 IA 64 | last post by:
Hello, I am working with Oracle 9Ri2 version on Linux AS 2.1 for IA64. I have a problem when i try to lanch the following program : EXEC SQL PREPARE MyStmt FROM SELECT CHAMP1 FROM TAB1...
1
by: Steve Thorpe | last post by:
Hi. I have two sql servers and have ran exec sp_addlinkedserver 'ACSPSM', N'SQL Server' to link one to the other and also vise versa. Each server has two users permissioned. My problem is...
1
by: Matik | last post by:
Hello to all, Maybe first small introduction: - SQLServer 2000 SP3, - XP Pro EN, - ActiveX, - SP in database It should working like this. There is a instanse of an object working, which...
3
by: Cesco | last post by:
Hallo to everybody. I have a DTS in SQL Server 2000 and I need to execute it from stored procedure. I know that there are various method fot does this but they doesn't work. The first method that...
2
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine to Windows 2003 server hosting SQL server 2000...
2
by: peleme | last post by:
Hi, Here is a code example to visualize my problem. ---------------------------------------------------------------------------------- import thread import threading from time import sleep ...
5
by: TPJ | last post by:
I have the following code: ----------------------------------- def f(): def g(): a = 'a' # marked line 1 exec 'a = "b"' in globals(), locals() print "g: a =", a
2
by: chets | last post by:
Hi All, I am facing problem in executing one dynamic query in PRO *C program on linux. I want to update table mytable by data MADURAI for a column mycolumn1 where primary key is myPK.I want to...
27
by: comp.lang.tcl | last post by:
My TCL proc, XML_GET_ALL_ELEMENT_ATTRS, is supposed to convert an XML file into a TCL list as follows: attr1 {val1} attr2 {val2} ... attrN {valN} This is the TCL code that does this: set...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.