mantra2006 has asked for the wisdom of the Perl Monks concerning the following question:
sftp -oIdentityFile=keys/public_key -oPort=555 -oUser=anonymous -oHost +name=proxy-someserver.abcx.com $host << EOF lcd $file_dir cd $local_dir ls bye EOF When I run the above script it displays the list of files in the direc +tory...I want to get that list in a array and loop through it to down +load all the files so when I does this @files=`ls` echo $files it says invalid command...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SFTP in ksh
by zentara (Cardinal) on Aug 23, 2006 at 15:55 UTC |