Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Get information without CGI

Posted on 1997-05-18
4
Medium Priority
?
157 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 180 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

604 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