Sponsored Content
Full Discussion: telnet question
Top Forums UNIX for Dummies Questions & Answers telnet question Post 4045 by ober5861 on Tuesday 17th of July 2001 02:54:06 PM
Old 07-17-2001
telnet question

Does anyone know a way to log into a telnet server with username and password all with one command? I have to do this remotely. I can do this with FTP with the following command under windows:

ftp -s:c:\dir\test2.txt 10.0.0.207

The "-s:filename" option is just a list of commands that occurs once the ftp server is contacted. I was wondering if there was a way to do this with telnet also. Basically, I need to automate a task from Windows to HP-UX with as much simplicity as possible and I can't do everything that I need from the FTP prompt. Any help appreciated. I have a shell script written to take care of the work once I get into the telnet server, I just need to get there first. (This is so I don't have to teach people Unix to do a simple task)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Telnet timout question

ok here is a little bit on what I am trying to do. I am logged into a saolaris 9 server and telnet to another server to run an application that sits on the second unix / linux server. This application can sit idle for an hour to two and any given time. During this time the telnet session timesout... (4 Replies)
Discussion started by: Acleoma
4 Replies

2. Solaris

TELNET Question

Hello All, I have a question. I have two V480 systems that can telnet to other systems on our network, but lo cannot receive a telnet from other systems. I've check the usual .rhosts, env and several other files such as the telnetrc files with no luck. I've tried all avenues before issuing... (8 Replies)
Discussion started by: mr-synapse
8 Replies

3. HP-UX

question about telnet to HP unix 11

When using telnet connect to HP unix 10, it will get a pty/ttyxx terminal, but using telnet connect to HP unix 11, it will get a pts/tx terminal. I want to ask is, can I using telnet connect to HP unix 11 and get a pty/ttyxx terminal ?? :confused: thx a lot (3 Replies)
Discussion started by: zetadhell
3 Replies

4. UNIX for Dummies Questions & Answers

Telnet question

How do I get back to Unix prompt while telneting to a router w/out exit from the telnet session? Thanks (2 Replies)
Discussion started by: oppiz
2 Replies

5. Shell Programming and Scripting

Webpage to Telnet via Perl and Expect: Telnet problem?

Somewhat long story: I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage. This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies

6. Solaris

Question about telnet?

Hi everyone. I am newb at solaris i have 2 question 1. i am finding a way to prevent separate users to telnet similar like /etc/ftpd/ftpusers in Solaris system I know a way to disable user ftp by force user shell=/bin/false 2. or any program can do a chroot telnet user like proftpd :D ... (5 Replies)
Discussion started by: tien86
5 Replies

7. Shell Programming and Scripting

Telnet Expect script question

Hi all, I have written a small expect script which should spawn a telnet session login and execute some commands. #!/usr/bin/expect -f spawn telnet $env(IP) match_max 100000 expect "login:" send -- "******\n" expect -exact "Password:" send -- "****\n" expect "%" Now I have got... (2 Replies)
Discussion started by: stinkefisch
2 Replies

8. IP Networking

telnet window size question

Hello! I'm writing a small telnet client using Erlang and the gen_tcp library. I receive IAC WILL ECHO and IAC WILL SUPPRESS_GO_AHEAD which I respond to. Then I receive various text output from the server, and then this: resize: unknown character, exiting. I'm curious as to why I do... (1 Reply)
Discussion started by: Gustav
1 Replies

9. UNIX for Dummies Questions & Answers

Automatically login in the telnet from present telnet

Hi, I was writing one script which includes to switch to the another telnet automatically from the present telnet server. I was using rlogin but firstly it takes the same user name of the present telnet and secondly it is prompting for the password. But i want to switch to the another telnet... (2 Replies)
Discussion started by: Prateek
2 Replies

10. UNIX for Dummies Questions & Answers

Difference Between Krb5-telnet And Ekrb5-telnet

Hi, I want to know the difference between these two services. Both are under xinetd. Both are used for enabling and disabling Telnet service. So, can somebody please explain me the difference between the two ? Thanks in advance :) (0 Replies)
Discussion started by: kashifsd17
0 Replies
ftpconfig(1M)						  System Administration Commands					     ftpconfig(1M)

NAME
ftpconfig - set up anonymous FTP SYNOPSIS
ftpconfig [ftpdir] ftpconfig -d ftpdir DESCRIPTION
The ftpconfig script is executed by the super user to set up anonymous FTP. Anonymous FTP allows users to remotely log on to the FTP server by specifying the user name ftp or anonymous and the user's email address as password. The anonymous users are logged on to the FTP Server and given access to a restricted file area with its own file system root. See chroot(2). The FTP area has its own minimal system files. This command will copy and set up all the components needed to operate an anonymous FTP server, including creating the ftp user account, creating device nodes, copying /usr/lib files, and copying timezone data. The passwd and group files set up have been stripped down to prevent malicious users from finding login names on the server. The anonymous file area will be placed under ftpdir. If the ftp user account already exists, then the current FTP area is used, and the system files in it are updated. All other files are left untouched. This command should be run to update the anonymous FTP area's configuration whenever a system patch is installed, or the system is upgraded. OPTIONS
-d Create a new or update an existing ftpdir without creating or updating the ftp user account. Use this option when creating guest FTP user accounts. OPERANDS
The following operands are supported: ftpdir The absolute pathname of the directory under which the anonymous FTP area is set up. EXIT STATUS
The following exit values are returned: 0 Successful completion 1 Improper usage of the command 2 Command failed ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWftpu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
ftpaddhost(1M), in.ftpd(1M), useradd(1M), chroot(2), attributes(5) SunOS 5.10 1 May 2003 ftpconfig(1M)
All times are GMT -4. The time now is 01:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy