image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old May 4th, 2002, 10:31 AM
Registered User
 
Join Date: Oct 2001
Location: US
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
lethe is on a distinguished road
login with a script

is it possible to get a script to log me in to, say, a telnet session? i had thought that something along the lines of
Code:
% telnet host <  script
might work. i would have login and pass as the first two lines, and then a list of commands to execute on the remote host.

it seems that i should be able to somehow convince telnet that is this file is actually STDIN. any thoughts?
Reply With Quote
  #2  
Old May 5th, 2002, 11:26 AM
Moof!
 
Join Date: Mar 2002
Location: Minneapolis
Posts: 375
Thanks: 0
Thanked 0 Times in 0 Posts
chenly is on a distinguished road
Talking AppleScript

AppleScript it thusly (note: this is *NOT* a real script, just a general outline):

tell application Terminal
_____open document
end tell

In this context, "document" represents the terminal session. If you use ScriptEditor.app, you should be able to record this script without any trouble. Also, since this message board wouldn't accept a tab or five spaces for the indent in the second line, I inserted underscores; this needs to be a tab in ScriptEditor.app.
__________________
% man woman
man: no entry for woman in the manual.
••••••••••••••••••••••••••••••••••••
http://www.riddleme.com/html/cow.html
Reply With Quote
Reply

Bookmarks

Thread Tools

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LoginHook Script Problems emh_alpha1 Unix & X11 4 August 29th, 2003 08:01 PM
Getting a CGI script to work locally on my Mac simX Mac OS X System & Mac Software 11 July 12th, 2002 01:43 PM
login script help emh_alpha1 Unix & X11 5 July 4th, 2002 09:49 PM
HOW TO STOP SPAM -- join the fight! GadgetLover Apple News, Rumors & Discussion 11 April 11th, 2002 02:52 PM
AppleScript front end to a shell script? meancode Mac OS X System & Mac Software 0 March 17th, 2002 08:25 PM


All times are GMT -5. The time now is 10:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright 2000-2010 DigitalCrowd, Inc.