Article View: comp.unix.misc
Article #2039Re: How to launch a shell script (.sh) from an HTML page ?
From: Chris F.A. Johnson
Date: Mon, 29 Oct 2001 20:01
Date: Mon, 29 Oct 2001 20:01
21 lines
2847 bytes
2847 bytes
On Mon, 29 Oct 2001, Hactar wrote:
> In article <BPcB7.1463$jr.299765@news1.rdc1.va.home.com>,
> Keith Duffin <keith@duffin.org> wrote:
> > Shell can be used out of the box by apache as a cgi. Just drop a shell
> > script in your cgi directory.
>
> There is only a cgi directory if there is a web server. The OP said this is
> a local page (i.e., no web server); right, OP? You're using some kind of
> file:// URL to view this file, yes? I don't know how to do it without a
> web server. With a web serber, Keith's right; you just put it in /cgi-bin
> or wherever cgis are kept. The script should output HTML.
The script need not output HTML; it can be anything (plain text, images,
etc.), so long as the header identifies the correct type.
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2001, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
Technical Details
Message-ID:
<Pine.LNX.4.33.0110291459060.23075-100000@cruciverbalizer.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news4.rdc1.on.home.com.POSTED!not-for-mailReferences:
<9r3fue$6k5$1@news.businessobjects.com> <BPcB7.1463$jr.299765@news1.rdc1.va.home.com> <9rjv1m$mc9$1@pc.tampabay.rr.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,ce5dc68f68e2e00a X-Google-Attributes: gidf8c9b,public X-Google-Thread: f72b0,ce5dc68f68e2e00a X-Google-Attributes: gidf72b0,public X-Google-Thread: fe1d2,ce5dc68f68e2e00a X-Google-Attributes: gidfe1d2,public X-Google-Thread: 11035d,ce5dc68f68e2e00a X-Google-Attributes: gid11035d,public X-Google-Thread: 110f2c,ce5dc68f68e2e00a X-Google-Attributes: gid110f2c,public X-Google-Thread: 1012a6,ce5dc68f68e2e00a X-Google-Attributes: gid1012a6,public X-Google-Thread: fa664,ce5dc68f68e2e00a X-Google-Attributes: gidfa664,public X-Google-ArrivalTime: 2001-10-29 12:01:58 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news4.rdc1.on.home.com.POSTED!not-for-mail Newsgroups: comp.unix.misc,comp.unix.questions,comp.unix.sco.misc,comp.unix.sco.programmer,comp.unix.shell,comp.unix.solaris,fr.comp.os.unix From: "Chris F.A. Johnson" <c.f.a.johnson@home.com> X-X-Sender: <chris@cruciverbalizer.org> Subject: Re: How to launch a shell script (.sh) from an HTML page ? In-Reply-To: <9rjv1m$mc9$1@pc.tampabay.rr.com> Message-ID: <Pine.LNX.4.33.0110291459060.23075-100000@cruciverbalizer.org> References: <9r3fue$6k5$1@news.businessobjects.com> <BPcB7.1463$jr.299765@news1.rdc1.va.home.com> <9rjv1m$mc9$1@pc.tampabay.rr.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Lines: 22 Date: Mon, 29 Oct 2001 20:01:58 GMT NNTP-Posting-Host: 24.43.25.70 X-Complaints-To: abuse@home.net X-Trace: news4.rdc1.on.home.com 1004385718 24.43.25.70 (Mon, 29 Oct 2001 12:01:58 PST) NNTP-Posting-Date: Mon, 29 Oct 2001 12:01:58 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster