05-19-2004
21,
0
Join Date: Apr 2004
Last Activity: 11 May 2009, 7:33 AM EDT
Posts: 21
Thanks Given: 0
Thanked 0 Times in 0 Posts
Unattended ftp to Solaris
I have a Red Hat 9 server which I am attempting to ftp a file to
a Solaris 8 server using a shell script to perform an unattended ftp. I have the following script setup to run:
#!/bin/sh
#
cd /tmp
ftp -v 192.20.20.5 << EOF 2>&1
cd /tmp
put gatherstats
bye
EOF
I created the .netrc file on the Linux server to access the Solaris server. When I run my shell script it hangs on the Linux server. Any help would be appreciated.
Thanks,
Mike