
satipandu
Deleted
Mar 9, 2000, 10:38 PM
Post #1 of 4
(348 views)
|
|
Executing scripts on a server.
|
Can't Post
|
|
Hi !!! I had a pretty complicated question -probably having an easy answer. But, anyway, here is the question. Application requested: A CGI program that inputs a server name, user name, password and command from a html file and executes the required command on the server after authenticating the user name with the password. Problems i ran into: When a user comes to a web page, he is "nobody". He can telnet only to the server hosting the web page whereas the command the user wishes to execute may not reside on the host. Tried to do a second telnet from the first. Cant get the second telnet to read the user name and password. Workaround: I made the first cgi program write a file that stores the user name and password with the server name and the command. The cgi file transfers control to the second perl program which makes use of this written file. Had problems 'cos i was not able to debug the second prog using the first. And, this is not a good solution. I look forward to hearing from you. Thanks a lot for the help Cheerio Satish
|