Re: Bash script - telnet

Jens.Toerring_at_physik.fu-berlin.de
Date: 05/27/04


Date: 27 May 2004 00:56:53 GMT

Tokito <maramire@tutopia.com> wrote:
> I need a telnet script in bash. I need to log in a remote site for
> executing certain commands & tasks (remotely). Can somebody share a
> script like this? I use Debian Woody.

Since this usually involves entering the user name and password
(and I guess that's what your problem is) you better should have
a look at "expect", that's probably better suited for the task
than a bash script.
                                 Regards, Jens

-- 
  \   Jens Thoms Toerring  ___  Jens.Toerring@physik.fu-berlin.de
   \__________________________  http://www.toerring.de


Relevant Pages

  • Re: [ Attn: Randy ] Ad-hoc Parsing?
    ... > 1) They were out of context quotes, as the quotes came with no context. ... embed cpu instructions within a DOS/Windows batch script. ... that this also is possible with bash scripts. ... statement "It can execute the .com file as easily as a command.com ...
    (alt.lang.asm)
  • Re: [opensuse] Editting PATH variable
    ... SuSEconfig script ... ... not knowing what you options you used to install ... If your unfamiliar with Bash a good book is 'Learning the Bash Shell' by ... For Java use editing the PATH variable is NOT required... ...
    (SuSE)
  • Re: Command Line Interface
    ... >> should accept system commands only for an administrator. ... >> how should I supress the bash shell and launch my custom CLI ... > The script could run in a restricted shell and offer a menu of ... account, and either 1) change account password, 2) ...
    (comp.os.linux.misc)
  • Re: Reverse ldd ??
    ... people don't use them and that bash is what everyone does use, ... learning a new language in order to recode a snippet. ... then you will quickly recognize what the tclshell script ... I just am saying that's what I found confusing. ...
    (comp.os.linux.misc)
  • Re: bash: WHY???
    ... IMHO bash 2.05+ is the most usable interactive shell as it has ... OK - but call it a bash script, ... default in sh using sh features. ...
    (comp.unix.solaris)