0

here is my script to download some files through FTP.

 1 #!/bin/bash
 2
 3 for arg in "$@"
 4 do
 5         case "$arg" in
 6                 --help)
 7                         echo "-H <host> -> probably localhost..";
 8                         echo "-v -> activate the verbose mode !OPTIONAL!";
 9                         echo "-p <path> -> path to the datafile";
10                         echo "./PATH_TO_ME -p /home/kali/data -H localhost -v";; 
11                 -H)
12                         host=$4;;
13                 -v)
14                         echo "to-do";;
15                 -p)
16                         path=$2;;
17                 *)
18                         while IFS=: read -r local_path remote_path owner file_mode; do
19                                 ftp -n -p $host << EOT;
20                                 user ftpuser tttttt;
21                                 get $remote_path;
22                                 bye;
23                                 EOT;
24                         done <"$path"
25         esac
26 done

I get this error everytime enter image description here

I Don't know why I'm getting this. I'm using the documentation from my school. Searched on network, but this may work apparently..

Martin Prikryl
  • 167,268
  • 50
  • 405
  • 846
Empty_boy
  • 19
  • 4

0 Answers0