Dial from a Web page?

Dial from a Web page?

Post by Phil Massy » Sat, 27 Jun 1998 04:00:00



Hi,

I'm using Redhat 4.2, and I've got a script called DIAL that does a few
REDIR ports, and then calls my pppd.icon script, that connects PPP to my
ISP.  I would like to put a web page on my Linux box
(/home/httpd/html/start.htm) that contains like a start page with a DIAL
button it.  The dial button is (supposed to) call the DIAL script, a
plain Linux script.  When I do this, I get server misconfiguration
errors.

How can I fix this, and what am I missing?

-----------
Phil Massyn
-----------
The box said 'Windows NT or better', so I installed Linux


http://www.icon.co.za/~massyn/linux.htm

 
 
 

Dial from a Web page?

Post by R Wu » Sun, 28 Jun 1998 04:00:00



> Hi,

> I'm using Redhat 4.2, and I've got a script called DIAL that does a few
> REDIR ports, and then calls my pppd.icon script, that connects PPP to my
> ISP.  I would like to put a web page on my Linux box
> (/home/httpd/html/start.htm) that contains like a start page with a DIAL
> button it.  The dial button is (supposed to) call the DIAL script, a
> plain Linux script.  When I do this, I get server misconfiguration
> errors.

> How can I fix this, and what am I missing?

Hmm....maybe it will help more if you showed us your script/webpage...

But anyways, if you're calling it from HTTP, you'll need a header
(ex: Content-type: text/plain)

If the script works alright under shell, and the correct permissions are
set, it should be alright.

R Wu

 
 
 

Dial from a Web page?

Post by Phil Massy » Tue, 30 Jun 1998 04:00:00


I've just started to play with this, and there is nothing working yet...

Am I correct if I say, that when I execute the URL from my Web browser, eg.
http://my.linux.machine/cgi-bin/dial that it will execute my dialing
script??  I've made a button on an html page to call this url, but with no
joy.  The web page comes back - The server is misconfigured...

Regards

Phil Massyn
http://www.icon.co.za/~massyn/linux.htm



>> Hi,

>> I'm using Redhat 4.2, and I've got a script called DIAL that does a few
>> REDIR ports, and then calls my pppd.icon script, that connects PPP to my
>> ISP.  I would like to put a web page on my Linux box
>> (/home/httpd/html/start.htm) that contains like a start page with a DIAL
>> button it.  The dial button is (supposed to) call the DIAL script, a
>> plain Linux script.  When I do this, I get server misconfiguration
>> errors.

>> How can I fix this, and what am I missing?

>Hmm....maybe it will help more if you showed us your script/webpage...

>But anyways, if you're calling it from HTTP, you'll need a header
>(ex: Content-type: text/plain)

>If the script works alright under shell, and the correct permissions are
>set, it should be alright.

>R Wu

 
 
 

Dial from a Web page?

Post by John Timmer » Tue, 30 Jun 1998 04:00:00



> I've just started to play with this, and there is nothing working yet...

> Am I correct if I say, that when I execute the URL from my Web browser, eg.
> http://my.linux.machine/cgi-bin/dial that it will execute my dialing
> script??  I've made a button on an html page to call this url, but with no
> joy.  The web page comes back - The server is misconfigured...

You're making this harder than it should be; why not just make a simple
ppp connect script (and bind that to a button for your desktop, if you
want...).  Don't get httpd involved, you'll be sorry if you do.
--
Regards


Selfish Website   http://mindlink.bc.ca/john_timmers

 
 
 

Dial from a Web page?

Post by Stev » Tue, 30 Jun 1998 04:00:00




Quote:>I've just started to play with this, and there is nothing working yet...

>Am I correct if I say, that when I execute the URL from my Web browser, eg.
>http://my.linux.machine/cgi-bin/dial that it will execute my dialing
>script??  I've made a button on an html page to call this url, but with no
>joy.  The web page comes back - The server is misconfigured...

Phil,

The following wrapper code should work:

-----------8<---------------------------------------------------
#!/bin/sh

# Here's our generic html header.  Don't forget the blank line!

echo Content-type: text/html
echo

# ...and here you can just plug in your dial script

echo Now running the dialer script!
/usr/local/bin/dialscript

--------------8<-------------------------------------------------

If you're still having problems, comment out the last line of the
above (so you're just left with echo statements) and that should
definitely work...  Otherwise you may want to make sure your
permissions are properly set everywhere, and that your web server is
properly configured.

   -Steve

 
 
 

Dial from a Web page?

Post by System Administration - inTEXT Communication » Mon, 06 Jul 1998 04:00:00


Dialing from your desktop is easy !
Use inetd !

do this:

/etc/inetd.conf
dial    stream  tcp  nowait  root  /usr/sbin/tcpd  /usr/sbin/pppd
/etc/services
dial  tcp/2000
dial  udp/2000

Two files..thats all !

now telnet to port 2000 from your winbox or wherever.
That will execute pppd through inetd...

You can figure out the rest......
Remember to HUP the ps inetd is running from


> Date: Mon, 29 Jun 1998 12:50:14 -0700

> Newsgroups: comp.os.linux.networking
> Subject: Re: Dial from a Web page?


> > I've just started to play with this, and there is nothing working yet...

> > Am I correct if I say, that when I execute the URL from my Web browser, eg.
> > http://my.linux.machine/cgi-bin/dial that it will execute my dialing
> > script??  I've made a button on an html page to call this url, but with no
> > joy.  The web page comes back - The server is misconfigured...

> You're making this harder than it should be; why not just make a simple
> ppp connect script (and bind that to a button for your desktop, if you
> want...).  Don't get httpd involved, you'll be sorry if you do.
> --
> Regards


> Selfish Website   http://mindlink.bc.ca/john_timmers

=======================================================================
Glenn Graham - inTEXT Communications       -  Vancouver Canada
Network System Integration Specialist      -  Network Security
Wide Area Information Networks             -  UNix Operating Systems
Internet Service Provider                  -  Lan Integration

=======================================================================
 
 
 

1. Utility to convert PowerPoint "web pages" into real web pages?

I am in the process of converting all of my stuff into formats not dependent
upon MicroShaft shaftware so that I can ditch Windoze altogether and go
entirely to Linux and/or *BSD.  Mostly, it is just time-consuming, but I have
run into one sticky problem.

I saved a large MicroShaft PowerPunt document as a "web page" (from within
PowerPunt 2000), and found that (as I was afraid of) the web page is only
viewable on MicroShaft Internet Exploder 5.5 disService Pack 2 (maybe all 5.x
and 6.x -- didn't try them).  When I tried to view it under NetScape 4.7x or
kfm 1.x for Linux with KDE 1.x, I could not view the web page (except for the
very 1st slide in 1 case).  And yes, I did enable JavaScrapped in NetScrape,
although in one case this simply enabled the PowerPunt "web page" to cause
NetScrape to crash with a bus error.  And yes, when given the opportunity, I
did click on the link to bypass the MicroShaft error message that says that
earlier versions of Internet Exploder are not supported, and doesn't even
acknowledge the existence of any other web browsers (of course -- in a few
years, they'll be claiming that they invented the web browser).  (And yes, I
know that MicroShaft commands that you must have an Office 2000 license and
MicroShaft Internet Exploder 5.0 or later to view their "web pages", but
they can go HERE --> http://freespace.virgin.net/andrew.harrison4/.)

So, does any utility exist to convert one of these monstrosities into a real
web page?  Here are the possibilities I can think of (feel free to suggest
others, except don't suggest keeping Windoze and Internet Exploder around):

1.      A utility that does this automatically or almost automatically
        (preferred)
2.      Hack the files manually (way too much work unless someone knows
        a clever trick -- for instance a sed script to run the files
        through to remove the curse of MicroShaft)
3.      Try to find something that can read the original PowerPunt 2000
        document and convert it properly into a format that can then be
        exported as a real web page (a possibility, but not preferred
        because it requires installing a major software package for just
        this one conversion)
4.      Upgrade from kfm to Konqueror 2.x (I don't know if this would
        work, and even if it did, this is still not a full solution,
        because it would leave the web pages not viewable by NetScrape
        users)

--
Lucius Chiaraviglio

To get the exact address:                     ^^^^^^^^^^^^^^^^^
Replace indicated characters with common 4-letter word meaning the same thing
and remove underscores (Spambots of Doom, take that!).

2. Power Conservation features for laptops?

3. Letting Dial in users host their own web pages.

4. nfs and aix

5. New US Robotics modem won't dial; browser won't find web pages

6. configuring modem at FreeBSD

7. I can ping my web server but can't open page in web browser

8. FreeBSD vs. Linux - which should I choose?

9. Configuring a web link on a web page to run a Citrix .ica file

10. Paging Software for Web Paging & Monitoring

11. Setting up of WEB pages in a WEB site in UK

12. Can't access Linux web server web pages from LAN client

13. question regarding securing web pages on an internal web server