nv-l
[Top] [All Lists]

Re: responding to prompt in ksh script

To: nv-l@lists.tivoli.com
Subject: Re: responding to prompt in ksh script
From: Ray Schafer <schafer@TKG.COM>
Date: Fri, 19 Feb 1999 22:56:38 -0500
Organization: The Kernel Group
Reply-to: schafer@tkg.com
Sender: Discussion of IBM NetView and POLYCENTER Manager on NetView <NV-L@UCSBVM.UCSB.EDU>
Check out the man pages for .netrc. Basically, you can set up a netrc file to
script a transfer. You won't need expect unless it is something where you need
an if - then - else block.

Steve Francis wrote:

> The more generic and expandable way to do this is to use expect and tcl.  Of
> course, this requires you learn expect, but I find it invaluable in nework
> management.
>
> Booker Rosemary wrote:
>
> > I've actually used a single command line prompt in a script for ftp
> >
> > ftp -v -n wis2 < nms.params
> >
> > where nms.params =
> > user <username> <userpassword>
> > ascii
> > put <filename>
> >
> > This way I don't have to wait for prompts from ftp.
> >
> > I think tftp has the same sort of functionality.
> >
> > Rosemary
> >
> > > -----Original Message-----
> > > From: Lucy Premus [SMTP:lpremus@METLIFE.COM]
> > > Sent: Wednesday, 17 February 1999 6:22
> > > To:   NV-L@UCSBVM.ucsb.edu
> > > Subject:      responding to prompt in ksh script
> > >
> > > I want to do a tftp, from a ksh script, to another system to retrieve
> > > files that
> > > my script is going use.  Is this possible?  How do I know when I get the
> > > tftp>
> > > prompt so that I could issue my get command and then of course quit from
> > > the
> > > tftp connection?
> > **********************************************************************
> > CAUTION: This Message may contain confidential information intended
> > only for the use of the addressee named above. If you are not the
> > intended recipient of this message you are hereby notified that any
> > use, dissemination, distribution or reproduction of this message is
> > prohibited. If you received this message in error please notify
> > Mail Administrators immediately. Any views expressed in this
> > message are those of the individual sender and may not necessarily
> > reflect the views of Woolworths Ltd.
> > **********************************************************************




--
Ray Schafer                   | schafer@tkg.com
The Kernel Group              | Distributed Systems Management
http://www.tkg.com

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web