yes I am sure that script is working with crontab
and it is run the same way
in doc there is a line:
Code:
cmd:interactive (boolean)
when true, lftp acts interactively, handles terminal signals and outputs some extra
messages. Default depends on stdin being a terminal.
http://lftp.yar.ru/lftp-man.html
as I understand whan it is run from crontab it is by default is in "set cmd:interactive off;"
i tried to make it on when running in crontab but it has no effect
the line I am trying to run the script from command line or by cron is like this:
Quote:
lftp -u 'user','pass' -e "mirror -c --verbose=0 /public_html ." mydomain.com > report.txt
|
p.s. I tried different variations to run the lftp the way lftp is called doesn't make any effect on my results that it doesn't save output to a file when called from cron
p.p.s. I just want to take final line from the lftp and sent it to email report