I run 6 different scripts via cron that ftp files to their particular destinations. I wrote a generic ftp script and modified as necessary for clients SRC --> DEST
Other than destination IP_addresses, user_IDs and passwords, they are identical
ftp -idvn >> $LOG << EOF
open $HOST
user $USER_ID $PASSWORD
bin
put <file> <dest>
quit
EOF
Four scripts run and exit cleanly, but two scripts leave the parent process and child ftp process out in the process table forever. I have to manually kill the PIDs. I have debug on, so I can see a graceful exit when files are sent. I have explicitly put "exit 0" at the end of the scripts.
Any help/ideas/suggestions are appreciated.
---> TYPE I
200 Type set to I.
local: /home/dir/file
remote: /home/dir/file
---> PORT 123,45,67,890,185
200 PORT command successful.
---> STOR /home/dir/file
150 Binary data connection for /home/dir/file(172,123,4,567,2745)
226 Transfer complete.
27750 bytes sent in 0.00331 secs (8.2e+03 Kbytes/sec)
local: /home/dir/file remote: /home/dir/file
---> PORT 123,45,67,890,186
200 PORT command successful.
---> STOR /home/dir/file
150 Binary data connection for /home/dir/file
226 Transfer complete.
29 bytes sent in 0.000306 secs (93 Kbytes/sec)
---> QUIT
221 Goodbye.
thank you.
genova
Other than destination IP_addresses, user_IDs and passwords, they are identical
ftp -idvn >> $LOG << EOF
open $HOST
user $USER_ID $PASSWORD
bin
put <file> <dest>
quit
EOF
Four scripts run and exit cleanly, but two scripts leave the parent process and child ftp process out in the process table forever. I have to manually kill the PIDs. I have debug on, so I can see a graceful exit when files are sent. I have explicitly put "exit 0" at the end of the scripts.
Any help/ideas/suggestions are appreciated.
---> TYPE I
200 Type set to I.
local: /home/dir/file
remote: /home/dir/file
---> PORT 123,45,67,890,185
200 PORT command successful.
---> STOR /home/dir/file
150 Binary data connection for /home/dir/file(172,123,4,567,2745)
226 Transfer complete.
27750 bytes sent in 0.00331 secs (8.2e+03 Kbytes/sec)
local: /home/dir/file remote: /home/dir/file
---> PORT 123,45,67,890,186
200 PORT command successful.
---> STOR /home/dir/file
150 Binary data connection for /home/dir/file
226 Transfer complete.
29 bytes sent in 0.000306 secs (93 Kbytes/sec)
---> QUIT
221 Goodbye.
thank you.
genova