nkpgmartin has asked for the wisdom of the Perl Monks concerning the following question:
I think there's something wrong with my put notation but I don't know how to fix it. This loop won't even update the log file. argh.$log = "log"; if ($list == 1)# one file to send { blah (this part works); } elsif ($list == 2) # multiple files to send { foreach $file (@initList) { $command = <<eod; ftp -nv $rem_host << eof > $log; user $rem_user $rem_passwd mput $ftp_source_path[$i] $ftp_dest_path[$i] bye eof eod } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ftp multiple files revisited
by davorg (Chancellor) on Apr 18, 2001 at 20:31 UTC | |
|
Re: ftp multiple files revisited
by traveler (Parson) on Apr 18, 2001 at 21:09 UTC | |
by nkpgmartin (Sexton) on Apr 18, 2001 at 23:21 UTC | |
|
Re: ftp multiple files revisited
by Masem (Monsignor) on Apr 18, 2001 at 20:58 UTC | |
|
Re: ftp multiple files revisited
by zigster (Hermit) on Apr 18, 2001 at 20:33 UTC | |
by davorg (Chancellor) on Apr 18, 2001 at 20:40 UTC | |
by Beatnik (Parson) on Apr 18, 2001 at 21:04 UTC | |
by zigster (Hermit) on Apr 18, 2001 at 21:17 UTC |