Solved

Get information without CGI

Posted on 1997-05-18
4
151 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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