On Sun, 23 Jun 2002, Michel Donais wrote:

> I need to place a script so that when a user login in bash
> it is immediately telnet to an SCO server.

> This script I think should look as:
> -------------------------
> telnet 192.168.0.200
> -------------------------
> 
> but If I want more like:
> 
> getting the login word from SCO then send back the user name
>  then getting the password interogation and sendig back the password
> 
> Is it possible to automate this process.

It is possible several ways.
 -- rlogin
 -- expect
       automated telnet login with expect
 -- port forwarding
       (-- implementation specific --)
 -- a custom login shell 
       custom passwd file telnet login

Each can reach the goal you mention, working at different 
parts of the *nix communication process.  *nix is a 
tool-builder's culture; part of that culture is avoiding 
re-inventing the tool-chain.  Google is a meta-tool in that 
regard.  The inset was a query which produced a result for me 
on the first couple hit pages ...

The 'best' tool for me would an expect approach (but I am
fluent in scripting, and have examples to crib from -- there
is a worked example running 5 pages in Don Libes excellent
book:  Exploting Expect -- a copy is or should be available in
your local library.  If not, librarians are always looking for
feedback on what to buy.  Recomment this one.  Used copies on
Amazon run - $16.50, used
   
http://www.amazon.com/exec/obidos/ASIN/1565920902/qid%3D1024855905/ref%3Dsr%5F11%5F0%5F1/104-2634230-5023948
  ) 

-- others may find rlogin (also called rsh, remsh, ssh and
more, depending on *nix installation and security policies)
easier (but it is potentially less secure)

good luck -- Russ Herrold



-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.openprojects.net

Reply via email to