• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: user:password with curl-telnet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: user:password with curl-telnet
      • From: Martin Orpen <email@hidden>
References: 
 >RE: user:password with curl-telnet (From: "Jan-Bultereys" <email@hidden>)

  • Prev by Date: Re: illustrator 10 text color change
  • Next by Date: Re: user:password with curl-telnet
  • Previous by thread: RE: user:password with curl-telnet
  • Next by thread: Re: user:password with curl-telnet
  • Index(es):
    • Date
    • Thread