From: hadi motamedi on
>
> cat << EOM | ftp -n 172.16.17.160
> user user-name pass-word
> bin
> send docs
> quit
> EOM
Thank you for your reply. But it seems that the remote node login
prompt will appear with some delay that I just see quiting from the
ftp session . Can you please let me know how to put some delay (pause)
in between?

From: hadi motamedi on
> cat << EOM | ftp -n 172.16.17.160
> user user-name pass-word
> bin
> send docs
> quit
> EOM

Sorry. I got another application on this procedure as the followings:
cat << EOF | telnet 172.16.17.160
command1
logout
EOF
It seems that everything is ok ,except for the output of issuing
'command1' on the remote node. I mean when I issue the 'command1' on
the remote node I see its response output but when I try as the above
I just see loging in and loging out and no output is shown. Can you
please let me know how to have it?
Thank you

From: VANOSPAM on
Hadi,
several people have already told you to use a .netrc file. That
will put the login information into a file that can then be used by
ftp. You can then do the following:

ftp 172.16.17.160 <<EOF
put docs
EOF

This will work on Solaris 8. Make sure your .netrc file is in the
home directory with permissions prohibiting group and world access,
something like 600. Do a man on netrc to look for the right format
for .netrc

Brad


From: hadi motamedi on
> will put the login information into a file that can then be used by
> ftp.  You can then do the following:
Thank you very much for your reply. I want to make use of the same
procedure for telnet to a remote VxWorks node and issue a command on
it and capture the output result in a file . Please be informed that
this VxWorks remote node does not ask for id/pwd for login . So I
wrote the same code but I just see telnet to it and then logout
(without any output shown on my screen). Can you please let me know
how can I do it in just one command line?