Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!agate!usenet.ins.cwru.edu!ysub!psuvm!cunyvm!byuvm!asuacad!aurtt From: AURTT@ASUACAD.BITNET Newsgroups: comp.unix.programmer Subject: controlling ftp process from a shell script or program Message-ID: <91139.124137AURTT@ASUACAD.BITNET> Date: 19 May 91 19:41:37 GMT Organization: Arizona State University Lines: 9 On our machine here at work wer are running BSD 4.3. I am trying to figure out an intelligent way to control an ftp process. When I say intelligent I mean that it must handle errors like timeouts or connection refused. If a connection establishes it should send the userid and password. I don't know how to get to the result of the ftp command. In previous attempts I was able to pass commands to ftp via the popen() function call, my problem is WHICH command to send and I need to know what the result of the ftp was in order to do this. I would greatly appreciate any suggestions. Thanks.