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 :p 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…