Thanks Rick,

That's exactly what I need.

Jay

P.s I don't have "expect" on this machine

----- Original Message ----- 
From: "Rick O'Shaughnessy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 13, 2001 12:39 PM
Subject: Re: [vox-tech] FTPing in a script


> 
> A better answer to your question of how to do it from within your
> script:
> 
> #!/usr/bin/ksh
> ftp -n <<EOF
> open lawprd01
> user jstrauss password
> ls
> EOF
> 
> The -n option supresses auto-login; which tries to use either .netrc
> or your current login name.
> 
> Hope this helps.
> 
> Rick
> 
> 
> Jay Strauss wrote:
> > 
> > Is there anyway to ftp within a shell script.  I can't make it past the
> > login.  for example:
> > 
> > #!/usr/bin/ksh
> > ftp lawprd01<<EOF
> > jstrauss
> > password
> > EOF
> > 
> > > ./tmp
> > Password:Name (lawprd01:jstrauss):
> > Login incorrect.
> > Login failed.
> > ?Invalid command
> > 
> > Jay Strauss
> > [EMAIL PROTECTED]


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to