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]

Reply via email to