There is a Bash command ./supload.sh -u USERNAME -k PASSWORD -r dest_dir/ src_dir
, which sends parameters: USERNAME, PASSWORD, destionation_directory, source_directory to "supload.sh" and uploads files. During upload, this command returns answers (see screenshot) and when it finishs upload, it gives final answer:
[*] All files uploaded
How can I get the last answer of the command into varialbe?
Something like this
./supload.sh -u USERNAME -k PASSWORD -r dest_dir/ src_dir
# get command answers' last string into variable
I need this answer to be sure that all files uploaded successfully and then do some actions. Thanks in advance.