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
> [EMAIL PROTECTED]
>