PDA

View Full Version : "Bookmark" common Terminal routine (or something...)




cleo
May 19, 2002, 04:27 PM
Sorry, I had no idea what to title this post.

I telnet into my school's system a number of times every day (especially when I'm stalking a hot girl... nothing like the "finger"... heh heh :D). Anyway, is there a way I can make it so I just click an icon on the dock and it automatically runs the telnet command? (Even better, can I tell it to automatically type in my user id and password, like some MUD clients will?)



Choppaface
May 19, 2002, 07:34 PM
shell script maybe?

cleo
May 19, 2002, 08:43 PM
Originally posted by Choppaface
shell script maybe?

Umm... what exactly is that... and how do I do it?

arn
May 19, 2002, 09:31 PM
Originally posted by cleo


Umm... what exactly is that... and how do I do it?

Create a text file (bbedit or whatever).... and type in the command you want... for example:

telnet the.server.name

save it.

go to terminal, type "chmod +x filename"

do Get Info on it, and choose Open With....
and choose Terminal.

This will launch terminal and execute that command when u double click on it. You can do it where it will log in for you - but that requires actual script programming...

arn

cleo
May 19, 2002, 09:48 PM
Thanks so much, arn - that was so easy! Rock on.

Choppaface
May 19, 2002, 10:05 PM
if you add the file extention .command instead of .txt then it will also automatically open up in the terminal when double clicked

mmmdreg
May 20, 2002, 05:59 AM
Originally posted by cleo
Sorry, I had no idea what to title this post.

I telnet into my school's system a number of times every day (especially when I'm stalking a hot girl... nothing like the "finger"... heh heh :D).

I thought you were a girl..

cleo
May 20, 2002, 10:49 AM
Originally posted by mmmdreg


I thought you were a girl..

I am ;)