i did this, but it was a LOOOONG time ago, and it was on a sunos machine.
this was before linux ever existed, in fact.  i did use a here file, btw.

check out expect; you can use it either with perl or tcl.  if you don't know
perl, this would be a good excuse to learn it.  :-)

pete


begin: Rick O'Shaughnessy <[EMAIL PROTECTED]> quote
> 
> I set up a .netrc in ~ with the following:
> 
>   machine   machine_name
>   login     login_id
>   password  something_secret
> 
> ...then I don't need to authenticate through the script at all.
> 
> Check netrc(5).
> 
> 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

Reply via email to