如何让rsync恶魔登录到stdout(而不是日志文件)?

时间:2017-09-20 13:32:16

标签: rsync supervisor

我在Supervisor下运行rsync。我通常会像这样启动rsync守护进程:

rsync --daemon --config=/home/zs6ftad/deployments/cmot_rsync_daemon/rsyncd.conf --no-detach

我想这样做,以便任何日志消息都回显到标准输出而不是存储在日志文件中。是否有一个选项可以使rsync服务器以这种方式运行?

1 个答案:

答案 0 :(得分:0)

您可以通过将Dim VariableRng As Range With ThisWorkbook.Sheets("worksheet(1)") '<-- is "worksheet(1)" the name of your worksheet ? ' set the range to Find result Set VariableRng = .Cells.Find(What:="word1") If Not VariableRng Is Nothing Then ' find was successful VariableRng.EntireColumn.Copy Else ' Find failed >> raise error msgbox MsgBox "Can't find 'word1' in " & .name & " sheet" End If End With 参数设置为--log-file来获取rsyncd以登录到stdout

/dev/stdout