質問

While using lftp, it will log the file transfer to the ~/.lftp/transfer_log when xfer:log setting is set to "yes".

What will happen when there are two instances of lftp running at the same time? Will the log file be mixed up?

Is there a way to change where the log file will be write to?

Thanks.

役に立ちましたか?

解決 2

I don't know the answer to the first and second question, but for the third question:

set xfer:log-file "/path/to/your/file.log"

他のヒント

When multiple instances of lftp write to the same log file it can be mixed up (as current lftp 4.7.1 does not use file locking for the log file). At best the lines will be interleaved.

The setting xfer:log-file appeared in lftp version 4.2.0.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top