hello
I need script which give me file list from server
Have you tried:
ls
Regards
I'm beginer
maybe something like this:
#!/bin/bash
user=x
password=xx
adres=xxx
lftp -u $user, $password $adres
ls -lart > list
get list /~
exit
I know this is wrong script. I need help.
according to this tutorial page on the lftp website, you can achieve what you want thus:
lftp -f <scriptname>
and the script is:
open ftp.blah.org
user <user> <pass>
ls
problem solved. thanx very much.