|
|
|
What is Telnet?
Telnet is a protocol most often used to connect to a UNIX system because of its command line interface. Telnet is a very useful protocol when properly used but lacks graphical user interface. Telnet clients we recommend for use. We recommend a program called CRT Telnet by VanDyke Technologies. You can download CRT Telnet from our FTP site or from VanDyke Technologies. Below are FTP download sites: ftp://ftp.vandyke.com/pub/CRT/ntcrt20e.exe Windows comes with a telnet program. Click the Start button on the Windows taskbar, then click Run. Type in "command" (without quotes). In the small window that opens, type "telnet" (without quotes) at the command prompt. Connecting to the HelpQuest.Com server. Connecting to HelpQuest.Com via telnet is simple. Use your domain name or your IP address as the hostname. In the telnet window of CRT or Windows telnet, you will then be prompted for your login and password. Once you enter this information and the server verifies this information, you will be logged into the root (/home/your_login) of your account. Basic Telnet commands for beginners. Telnet comes with a large number of commands that cannot all be discussed in this brief tutorial. Below we attempt to address basic telnet commands.
Using PICO in Telnet. Pico is a very basic editor used in Telnet. Although basic, it is very useful in that you can edit your HTML files, CGI scripts, and any other ASCII files without downloading them from the server, making the changes, then uploading them once again. Pico is used in the following manner: type in "pico <filename>" at the prompt. For example, let's say we wanted to edit a line in our links.cgi file. We would need to get into the directory where that file resides and type in "pico links.cgi" at the prompt. Now a screen would appear with our links.cgi file. Once you are finished making the changes to a file, press <Ctrl><X> at the same time. Pico will ask you if you wish to "Save modified buffer" (in plain English, save the changes). Type "y" if you want the changes saved or "n" if you want the changes ignored. If you typed in "y" it will then ask you "File name to write:", which means the file name to save the changes to; the default value is the file we originally edited (in this case, links.cgi). So you can save the changed file to a different name. For more information on Pico, visit the following URL: http://ellars.com/whatever/pico.shtml Talking to other users on Telnet. To talk to any user on the system, just type "talk login" where login is the actual login of the user you want to talk to. If the user accepts your chat request, a divided screen will appear and you two will be able to chat. Testing your CGI scripts through Telnet. One of the most powerful features of Telnet is that you can pinpoint problems in your CGI scripts. Unlike the HTTPD protocol which displays the infamous "Internal Server Error" message, telnet will tell you what is the real problem! To test your script, you must execute it on the server, which means your permissions must allow you (the user) to execute the script. Otherwise, a permission denied message will occur. Go into the directory where the script you wish to test resides. Let's say that the CGI script named "links.cgi" is giving us problems! To find the problem, type in "./links.cgi". The server will then execute the script and tell you what, if any, problems occur. The syntax for this command is "./script_name". After you have found the problem, you can edit your CGI script using PICO in Telnet, then test it again. Eventually you will get your script working, and much faster than trying to pinpoint the problem yourself!
|
|