LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Executing commands in Konsole... (https://www.linuxquestions.org/questions/linux-general-1/executing-commands-in-konsole-106354/)

meteotrade 10-20-2003 12:42 PM

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!

realos 10-20-2003 12:52 PM

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.

meteotrade 10-20-2003 01:36 PM

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.

trickykid 10-20-2003 01:41 PM

Add the konsole -e in front of what he mentioned... ??

meteotrade 10-20-2003 02:59 PM

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.

realos 10-20-2003 06:34 PM

meteotrade:

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


All times are GMT -5. The time now is 04:31 AM.