Ian (ian_poncho) wrote in linux,
Ian
ian_poncho
linux

Shell scripting help?

Hello fellow tuxers,

I have a simple question that I can't seem to solve...

How can I write a shell script that connects to a remote FTP server, changes to a certain directory inside it, then downloads the most recent file in that directory?

I know that once connected you can do 'ls -t' and the most recent file will be at the top, but couldn't link the whole thing together..

Any help gratefully received :)
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 7 comments