LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-20-2003, 12:42 PM   #1
meteotrade
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Rep: Reputation: 0
Executing commands in Konsole...


I'm trying to write a command for the shell to automatically telnet into a computer then enter the username and password. So far I have only been able to telnet in; I can't figure out how to get it to enter the usr/pswd. My command line looks like

konsole -e telnet -c (host name)

I'm not sure where to go after this... can anyone help? Thanks!
 
Old 10-20-2003, 12:52 PM   #2
realos
Member
 
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113

Rep: Reputation: 15
I just looked in the man page and it suggests trying:

telnelt -a -l <username> <remote hostname>

This automatic login does not work on machines that can not deal with ENVIRON option. As far as I see the command, you still need to type the password.

Last edited by realos; 10-20-2003 at 06:30 PM.
 
Old 10-20-2003, 01:36 PM   #3
meteotrade
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks Realos,

But what I was actually looking for was the command to put into the execute field of the Konsole properties, so that when I double click on the terminal shortcut, it runs the script and logs me in automatically.
 
Old 10-20-2003, 01:41 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Add the konsole -e in front of what he mentioned... ??
 
Old 10-20-2003, 02:59 PM   #5
meteotrade
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by trickykid
Add the konsole -e in front of what he mentioned... ??
Yeah, tried it... no dice. Has the same effect as my original command- it gets as far as the username prompt. I imagined there might be some command to just initiate a string of text in a script... i.e., telnet <enter> hostname <enter> username <enter> password <enter>. I've been searching all afternoon, and I can't seem to find anything that will do it.
 
Old 10-20-2003, 06:34 PM   #6
realos
Member
 
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113

Rep: Reputation: 15
meteotrade:

Please do share how your solution when you find any way.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
executing konsole from shell script Meriadoc Linux - Newbie 10 07-10-2009 08:08 AM
Difference Executing In GUI And Konsole Shing Linux - Newbie 2 04-05-2005 11:19 AM
executing Super User Konsole GUIPenguin Linux - General 2 01-20-2005 09:32 PM
executing shell commands in c++ true_atlantis Programming 2 10-01-2004 04:53 PM
Executing commands on startup viciousfish Linux - General 5 06-28-2002 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration