Solved

Get information without CGI

Posted on 1997-05-18
4
147 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now