Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp processes still in process table

Status
Not open for further replies.

genova

Technical User
Feb 20, 2002
4
0
0
US
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 &quot;exit 0&quot; 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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top