I'm trying for a FTP script, that sends files in different folders within the same connection ,but no luck with below script. Adding to this,any possible condition to send latest files generated 10 minutes before this script triggers
`#!/bin/bash
HOST_NAME=host.server
username= user_name
passwd= password
remote = /path_to_remote/folder
local = /path_to_local/folder
folder=$1
pwd
ftp -in <.txt
mkdir $remote/$folder
cd $remote/$folder
lcd $local/$folder
put b_filename.txt
close
bye `