Solved

Get information without CGI

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

Suggested Solutions

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

831 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