I am very new to coding/scripting..
I have a noob question I guess:
I have this script to upload and delete files on my remote host:
#!/bin/bash
echo Starting Website upload ...
echo This may take some time depending on your internet connection ...
echo Waiting for remote connnection ...
/usr/bin/ftp -d server121.web-hosting.com << ftpEOF
prompt
cd public_html
delete index.html
cd images
mdelete *.jpg
cd ..
lcd /Applications/PlexEmail/streamnet/
put index.html
lcd images
cd images
mput *.jpg
bye
ftpEOF
echo Website upload successfull ...
Ok so now I upgraded my mac to high sierra 10.13 and there is no ftp command anymore.
Can please someone help me out to get this to work with lftp
?
lftp
is not part of the standard install, what is this? And if you are open for additional software installs, why not just installftp
via homebrew? – nohillside♦ Oct 1 '17 at 7:39