Hi guys...
I'm working on #!/bin/sh script in a Solaris 7 box that should send several files over to another machine via FTP. Here's what the script looks like:
# This script will send the daily MSP customer counts
# to the Crystal Reports server located at 192.168.2.106
cd /archive/data/CustCnt
ftp -n 192.145.230.106 << !
user anonymous joe@blow.com
put CustCnt.*
!
A quick ls of my /archive/data/CustCnt directory shows that there are a few files that "should" be FTP'd:
ROOT@fcivrc: pwd
/archive/data/CustCnt
ROOT@fcivrc: ls
CustCnt.060605231555.ma
CustCnt.060605231556.nyne
CustCnt.060705231542.ma
CustCnt.060705231542.nyne
The script successfully connects to the remote server, but it only sends the first file (CustCnt.060605231555.ma). The rest of the files never make it??????
I tried using ftp -i and that did not work. Any ideas as to why only the forst file is being FTP'd??
-cd