Page 1 of 1

Telnet Coding

Posted: 2004-04-16 10:50pm
by Kitsune
I have no experience with Telnet and I am hoping to get a little help

First, does someone know a website I can get basic instructions on how to use telnet? My understanding is that cgi-bin files are setup using telnet?

Second, I have the code for a program to switch between images on my website. What woudl be the commands I would need to set it up using telnet?

Posted: 2004-04-16 11:36pm
by Crayz9000
1. Whatever website provider you're using, it should not use Telnet for shell access. It should use ssh, which encrypts the session (Telnet sends everything, password included, as clear text). PuTTY is one SSH client for Windows.

2. Telnet commands depend on what operating system the hosting provider uses. If it's *nix, then you have to obey the POSIX standards (forward instead of backslashes for folders, etc) and learn the syntax of whatever shell you're given. If it's Windows, then the commands are DOS.

As for setting up CGI scripts, I haven't tried them so I don't know how they are set up.

Re: Telnet Coding

Posted: 2004-04-17 11:14pm
by sketerpot
Kitsune wrote:First, does someone know a website I can get basic instructions on how to use telnet? My understanding is that cgi-bin files are setup using telnet?
If you have telnet installed, just go to the command line and type "telnet hostname", where hostname is the name of the computer you're connecting to. Telnet does nothing more or less than opening a raw connection to another computer. With telnet, if you know what to type, you can download web pages by pretending to be a web browser; that's how general it is. In this case, however, chances are you'll just be prompted for username and password and be presented with a command line.

On a UNIX machine, cgi-bin files generally just have to me moved into the appropriate directory (try the mv command), and made executable ("chmod +x filename"). Get more details of the specific setup and read the manual; I really couldn't tell you more without phychic powers.
Second, I have the code for a program to switch between images on my website. What woudl be the commands I would need to set it up using telnet?
What language? What code? What web server, running on what OS?

I'm sorry I can't be more helpful, but Telnet really doesn't do much. It's just a communications program, and an extremely primitive one at that.

Posted: 2004-04-18 03:29pm
by Pu-239
cgi-bin files should go under the designated cgi-bin folder, then have permissions set by doing "chmod 755 [filename]"

Posted: 2004-04-18 07:22pm
by Kitsune
how would I move a file to the cgi-bin directory from my computer using telnet or should I not need to an can use FTP to move the file from my computer?

Posted: 2004-04-18 07:30pm
by Durandal
Whoever is running the server, tell him to get with the 21st century and install an SSH server. That server's practically begging to be hacked.

Posted: 2004-04-18 09:50pm
by Pu-239
Google for winSCP for uploading files.