in reply to ftp multiple files revisited

Ahhh, you are using mput. mput requires a confirmation for each action unless you turn that off. Add prompt y on a line by itself before the mput. Since you are using mput for single files, though, why not use put? Also, have you considered opening $rem_host only once and then sending put lines for each file?

BTW, not all ftp clients allow command line input as you are using. I assume yours does because single files work, but on *nix you could also use ncftpput which allows some more control from the command line.

--traveler

Replies are listed 'Best First'.
Re: Re: ftp multiple files revisited
by nkpgmartin (Sexton) on Apr 18, 2001 at 23:21 UTC
    I get the error: Not connected. Not connected. With or without prompt y, with put or mput. But only for multiple files loop. It doesn't make any sense. Is someone willing to look at more of the program, it's a real messy thing I inherited that I don't want to subject to this site! Thanks.