Help on commands in sftp using BatchFile

view story

http://www.unix.com – Hi, The script didn't continue as "20130109" folder is already created on the destination server. Please help. Entry in script: Code: cat > $filebatch << __EOF__ mkdir $current_date mkdir $current_date/$fpdomain cd $current_date/$fpdomain ls -l __EOF__ Error: Code: sftp -b $filebatch id@ipaddress sftp> sftp> mkdir 20130109 Couldn't create directory: Failure Kindly help, Regards, Choco (HowTos)