Re: user:password with curl-telnet
Re: user:password with curl-telnet
- Subject: Re: user:password with curl-telnet
- From: Martin Orpen <email@hidden>
- Date: Tue, 12 Apr 2005 16:09:53 +0100
on 12/4/05 10:18, Jan-Bultereys at email@hidden wrote:
> example:
> 1 - telnet to the server (bypass user and password prompt)
> 2 - enter: isql (to access sybase)
> 3 - give the command
You could use *expect* - a simple example:
spawn ssh email@hidden.0.1
expect: "email@hidden.0.1's password:"
send "MyPa55wRd\r"
interact
exit 0
Save it as "example_exp", chmod it and then launch using:
expect example_exp
Add whatever commands you want - just copy them from a terminal session.
Check out expect's man page for more information.
I suppose you could easily run it in a new Terminal window using something
(untested) like:
set p to POSIX path of (choose file)
tell application "Terminal"
do script "expect " & p
end tell
Probably a good idea to keep your expect files somewhere where other people
can't find them :(
Regards
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden