[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Executing cgi-script from minivend page
At 06:13 AM 6/23/99 , Dmitriy Katsman wrote:
>****** message to minivend-users from Dmitriy Katsman <dmk@acinc.com>
******
>
>Hey, that's a good idea... :)
>BUT...
>it will work for UPS CGI (it's ok to have it in the new window)
>but what about other CGI scripts?
>on my current site I have about 10-20 scripts (perl) written by me to do
various
>things....
>and the results those scripts produce have to be displayed on the current
page
>is there way to do it? or maybe I can just try to convert my existing
perl programs
>(not object-oriented) to [perl] ... [/perl] format??
>is it possible?
That would be the avenue I'd follow. It shouldn't be *that* hard. ;-)
>what if I just pass the return URL to my (external) cgi program, and then
that program
>would stick that URL somewhere on the resulting page, so that people can
click on some
>link and go back to their MiniVend session? Or a link like
>(.../.../simple/index;;2328738782) is not going to restore the session?
You could do that too, I think somone just posted the method for that. If
you passed the session ID in the URL you'd be doing just fine - especially
if you had cookies enabled. With cookies (and browsers accepting them) you
would not even need to worry about passing the session ID.... BUT, it's
better safe than sorry.
>I just can't get used to the idea that all that hard work (of writing
those little
>tweaking CGI's) will be wasted
It certainly would not be wasted. Think of all you learned by the
process! ;-) Seriously though, you should be able to convert your CGI's
to work inside the Minivend environment, either Globalsubs, usertags, or
just plain PERL tags... I believe that globalsubs and usertags are
pre-compiled so it would actually make your cgi's faster.
>
>thanks for the help,
>DMitriy
>
>Ryan Hertz wrote:
>
>> ****** message to minivend-users from Ryan Hertz
<rhertz@gyb.baits.com> ******
>>
>> At 03:05 PM 6/22/99 , Thompson-Jordan wrote:
>> >****** message to minivend-users from "Thompson-Jordan"
>> <Thompson-Jordan@mindspring.com> ******
>> >
>> >Tough to do without frames.
>> >
>> >Write Perl to suck in the UPS page. Then strip off the outer part of the
>> >page, put your own code around it and output it.
>> >
>> >Then give me a copy of it (my idea :-). I'd like to do the same thing and
>> >would be willing to help.
>> >
>> >Christopher Thompson
>>
>> Heck, spawn a new window. <A HREF="upslookup.cgi"
TARGET=upswindow>Open
>> the UPS tracking CGI in a new window</A>
>>
>> That's a no-brainer.
>>
>> >
>> >
>> >> -----Original Message-----
>> >> From: owner-minivend-users@minivend.com
>> >> [mailto:owner-minivend-users@minivend.com]On Behalf Of Dmitriy Katsman
>> >> Sent: Tuesday, June 22, 1999 11:34 AM
>> >> To: minivend-users@minivend.com
>> >> Subject: Re: Executing cgi-script from minivend page
>> >>
>> >>
>> >> ****** message to minivend-users from Dmitriy Katsman
>> >> <dmk@acinc.com> ******
>> >>
>> >> Hey everyone....
>> >>
>> >> I am a little 'unclear' with CGI-script executing from minivend page...
>> >> how in the world is it going to work?
>> >>
>> >> CGI program always returns something as the result in HTML format..
>> >> so how is this HTML going to be displayed instead of Minivend page?
>> >> if it gets displayed, minivend will lose the control of the session
>> >>
>> >> for example, is there any way to do something like UPS tracking
>> >> from the site?
>> >> where customers would enter their UPS tracking number, then
>> >> Minivend page will call qcost.cgi
>> >> on UPS server, and display the resulting page? I guess... the
>> >> question is how to display the
>> >> resulting page, while keeping Minivend's LOGOBAR, MENUBAR and
>> >> all session stuff (I don't use
>> >> frames)
>> >>
>> >> Thanks,
>> >> Dmitriy
>> >>
>> >> Nick Temple wrote:
>> >>
>> >> > ****** message to minivend-users from Nick Temple
>> >> <ntemple@CommerceStore.com> ******
>> >> >
>> >> > Try:
>> >> >
>> >> > [perl]
>> >> > `/My_cgi-bin/Directory/script.cgi`;
>> >> > [/perl]
>> >> >
>> >> > Note the backticks, and remember that the safe module
>> >> disallows this by
>> >> > default.
>> >> >
>> >> > A better (safer) way would probably be to create a user tag to execute
>> >> > certain cgi-scripts based upon your criteria.
>> >> >
>> >> > Nick
>> >> >
>> >> > At 10:49 PM 6/20/99 +0200, you wrote:
>> >> > >****** message to minivend-users from "Hans-Joachim Leidinger"
>> >> > <hans-joachim.leidinger@home.gelsen-net.de> ******
>> >> > >
>> >> > >Hi Walter,
>> >> > >
>> >> > >There are some way to execute cgi-script. If you are able to
>> >> execute a
>> >> > >cgi-script in normal (static) html-page, you have found your
>> >> solution!
>> >> > >Otherwise you give us more information about your cgi-script!
>> >> > >
>> >> > >Joachim
>> >> > >
>> >> > >
>> >> > >| ****** message to minivend-users from adfranse <info@afa.nl>
>> >> > >******
>> >> > >|
>> >> > >| Hello list,
>> >> > >|
>> >> > >| I would like to execute a cgi-script from a minivend page.
>> >> > >| I've tried several things, but none of them seem to work.
>> >> > >|
>> >> > >| When trying
>> >> > >|
>> >> > >| [include file="/My_cgi-bin/Directory/script.cgi"]
>> >> > >|
>> >> > >| It displayed the script itself.
>> >> > >| So I thougt when I put this between [perl][/perl] tags it should
>> >> > >work.....
>> >> > >|
>> >> > >| I did not...
>> >> > >| I get no respons what so ever, nothing in the source,
>> >> nothing in any
>>
>> >> > >errorlog.
>> >> > >|
>> >> > >| How can this be done
>> >> > >|
>> >> > >| Greetings,
>> >> > >|
>> >> > >| Walter
Ryan Hertz tel 520-645-3812
Webmaster tel 800-645-BAIT
Advertising Director fax 520-645-2588
Gary Yamamoto Custom Baits, Inc. http://www.yamamoto.baits.com