You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
cd /usr/local/epost/mirror/
lftp -e "mirror -vnR /usr/local/epost/mirror/in && bye" sftp://name:password@000.000.000.000 >>/usr/local/epost/mirror/feedback/log.txt
lftp -u name,password -p 22 -e "mirror -vn feedback && bye" sftp://000.000.000.000 >>/usr/local/epost/mirror/feedback/log.txt
When I run it as
./sftp.sh
it runs perfect. But as a cronjob nothing happens. I know that cron is running the script because I had a
mkdir
outside of the lftp and the folder was created. Also if I try to log to
log.txt
the log wil be createt but with no content.
I run this script as root.
I hope someone kan help me with this.
Thanks.
but if i do
/usr/local/bin/lftp -e "mirror -vnR /usr/local/epost/mirror/in && bye"
sftp://name
assword@000.000.000.000
>>/usr/local/epost/mirror/feedback/log.txt
i get this message.
mkdir `in' [Delaying before reconnect: 59]
when the counter gets to 0 it starts from the beginning over and over again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…