Solved

Get information without CGI

Posted on 1997-05-18
4
153 Views
Last Modified: 2013-12-25
Hello.
Is there a way I can get information from the WEB without CGI?.
I have space and shell account in the WEB server.
I know more or less UNIX and HTML, I have a little bit experience with scripts under UNIX.

Thanks.
Thanks.
0
Comment
Question by:alacosta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
icd earned 60 total points
ID: 1828042
If your ISP provides some standard scripts then you can use these without having to worry about writing them yourself. Usually there is one called mailform.pl which mails the contents of (your) forms to a specified email address. You can then write a program to process these email messages on your local machine.

Alternatively you can create your form like:-

<FORM ACTION="mailto:youremail@anywhere.something" METHOD="POST">

Which will email the form contents to you without a script.
0
 

Author Comment

by:alacosta
ID: 1828043
Yes, right. I think this:
<FORM ACTION="mailto:youremail@anywhere.something" METHOD="POST"> only works under Netscape, but well this is not the fact.

What I need is to get just one line from the web and append this line to one file. Do you know how?
Example:

I have this file:

mark
joe
smith

so I need to get David from the web and then the file will be:

mark
joe
smith
David

and so over and over again.

I know Unix and HTML. I have shell account.

Thanks again
0
 
LVL 5

Expert Comment

by:icd
ID: 1828044
I suppose that any program that you can run from a telnet session should be able to be run from a web session (if that is the right term).

I don't know much about shell programming but I presume that if the shell program was accessible within the cgi-bin directory then in theory you should be able to specify it as the action of a form. The only difficulty being getting the form data from either an environment variable or stdin, but if you know shell programming then this should not be much of a problem.

If you don't have a cgi-bin directory then you may (or may not) be able to run it from any directory which has html documents. It depends upon how the server has been set up by your ISP.

I think I would try to create a simple script that simply appends to a file and outputs a simple html document to stdout to see if this is possible.
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1828045
IMHO, the simpler answer is: no, you cannot.

If your ISP doesn't let you run CGI's on his server, (s)he wouldn't probably let you run any process, any way, via the web, so you're out of luck.

I may just suggest you to write an as simple as possible shell script, and try to submit it to the ISP, hoping...

Good luck, julio
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ICACL switch help. How to include current folder 2 64
AWK - Blank file output zero bytes why? 18 43
BATCH to EXE Converter 2 98
BatchFile-Disk Detection 23 54
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question